Re: [SlimDevices: SqueezeCenter] CLI Interface - Setting server preferences (pref cmd) for array values (mediadirs)

2019-06-03 Thread gharris999
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

Re: [SlimDevices: SqueezeCenter] CLI Interface - Setting server preferences (pref cmd) for array values (mediadirs)

2019-06-03 Thread Michael Herger
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

Re: [SlimDevices: SqueezeCenter] CLI Interface - Setting server preferences (pref cmd) for array values (mediadirs)

2019-06-02 Thread gharris999
Code: JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","useUnifiedArtistsList","1"]]}' echo "$JSONSTR" | jq { "id": 1, "method": "slim.request", "params": [ "", [ "pref", "useUnifiedArtistsList", "1" ] ] }

Re: [SlimDevices: SqueezeCenter] CLI Interface - Setting server preferences (pref cmd) for array values (mediadirs)

2019-06-02 Thread Michael Herger
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

Re: [SlimDevices: SqueezeCenter] CLI Interface - Setting server preferences (pref cmd) for array values (mediadirs)

2019-06-02 Thread gharris999
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",

Re: [SlimDevices: SqueezeCenter] CLI Interface - Setting server preferences (pref cmd) for array values (mediadirs)

2019-06-02 Thread gharris999
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