np-supsonig: fix missing )
This commit is contained in:
parent
3252c121f2
commit
371adf503c
|
@ -19,7 +19,7 @@ local token=$(print -n "${password}${salt}" | md5sum | cut -d' ' -f1)
|
|||
|
||||
local response=$(curl --silent \
|
||||
"${host}/rest/getNowPlaying?v=${api_version}&c=${useragent}&u=${user}&s=${salt}&t=${token}&f=json")
|
||||
local entry=$(jq '."subsonic-response".nowPlaying.entry[] | select(.username == "'${user}'")' <<<${response}
|
||||
local entry=$(jq '."subsonic-response".nowPlaying.entry[] | select(.username == "'${user}'")' <<<${response})
|
||||
local title=$(jq --raw-output .title <<< ${entry})
|
||||
local artist=$(jq --raw-output .artist <<< ${entry})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user