blob: 7a75d4901ab46a2cf1d313ee2855d298c7a9172a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
password="${SUBSONIC_PASSWORD:?please set the password}" enc_password="$(hexdump --format '1/1 "%02x"' <<<$password)" enc_password="${enc_password%0a}" method="${1:?please pass a method}" shift; IFS='&';args="$*" curl -v "https://subsonic.thenautilus.net/rest/${method}?v=1.12.0&c=myapp&u=dakkar&p=enc:${enc_password}&${args}"
|