#!/bin/bash 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}"