1
0
Fork 0

np-subsonic: docs, user-agent

This commit is contained in:
tastytea 2024-04-04 12:51:37 +02:00
parent 5fea0a8dac
commit ac83b7da1e
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env zsh
# get now playing from subsonic compatible API
# cfg file: host\nuser\password
# cfg file: host\nuser\password (host=everything before /rest)
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
@ -11,7 +11,7 @@ done < ${XDG_CONFIG_HOME:-~/.config}/np-subsonic.cfg
local host=${cfg[1]}
local api_version=1.16.1
local useragent=np-hack
local useragent=np-subsonic
local user=${cfg[2]}
local password=${cfg[3]}
local salt=$(pwgen 20 1)