np-subsonic: docs, user-agent
This commit is contained in:
parent
5fea0a8dac
commit
ac83b7da1e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user