Ok, so my json string was screwed up. This works:
Code:
--------------------
LPREF_VALUE == ignoreInImageScan: ["/mnt/Media/AudioBooks",
"/mnt/Media/MusicGary","/mnt/Media/Music","/mnt/Media/MusicMP3s"]
LPREF == ignoreInImageScan
LVALUE == ["/mnt/Media/AudioBooks",
"/mnt/Media/MusicGary","/mnt/Media/Music","/mnt/Media/MusicMP3s"]
JSONSTR ==
{"id":1,"method":"slim.request","params":["",["pref","ignoreInImageScan",["/mnt/Media/AudioBooks",
"/mnt/Media/MusicGary","/mnt/Media/Music","/mnt/Media/MusicMP3s"]]]}
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"ignoreInImageScan",
[
"/mnt/Media/AudioBooks",
"/mnt/Media/MusicGary",
"/mnt/Media/Music",
"/mnt/Media/MusicMP3s"
]
]
]
}
curl --silent -H "Content-Type: application/json" -X POST -d "$JSONSTR"
http://localhost:9000/jsonrpc.js
--------------------
My next problem: how do you set the value of a pref to ~? I assume that
in the server.prefs file, the ~ value is equivalent to 'unchecked' or
false. But setting the pref value to '~' results in checked, and
setting it to "" causes bad things to happen. E.g. what do I need to do
if I want the prefs:
Code:
--------------------
useUnifiedArtistsList: 1
bandInArtists: ~
composerInArtists: ~
conductorInArtists: ~
--------------------
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=96666
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter