You know, I think I was mistaken about the "bad things." Further
testing, ang grepping these prefs out of the server.prefs file:
Code:
useUnifiedArtistsList: '1'
bandInArtists: ''
composerInArtists: ''
conductorInArtists: ''
..yields
useUnifiedArtistsList: '1'
bandInArtists: ''
composerInArtists: ''
conductorInArtists: ''
The "bad thing" (actually, a relatively minor thing) that happens is
that useUnifiedArtistsList then gets reset to 0 and the interface is
back to using two separate lists for Album Artists and
Code:
JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","useUnifiedArtistsList","1"]]}'
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"useUnifiedArtistsList",
"1"
]
]
}
false. But setting the pref value to '~' results in checked, and
setting it to "" causes bad things to happen.
Please share the exact JSON you sent for an empty string, and what bad
things happened?
--
Michael
___
Squeezecenter mailing list
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",
Sorry to necropost, but I'm trying to achieve the same thing: set the
mediadirs pref from outside lms.
After trying to piece together what's required by following Michael's
suggestion and looking at Slim::GUI::ControlPanel->setPref() and
Slim::GUI::ControlPanel->serverRequest()
..this string