Code:
--------------------
JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","useUnifiedArtistsList","1"]]}'
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"useUnifiedArtistsList",
"1"
]
]
}
JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","bandInArtists",""]]}'
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"bandInArtists",
""
]
]
}
JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","composerInArtists",""]]}'
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"composerInArtists",
""
]
]
}
d
JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","conductorInArtists",""]]}'
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"conductorInArtists",
""
]
]
}
--------------------
That results in prefs like:
Code:
--------------------
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 All Artists.
If the prefs are attempted to be set via:
Code:
--------------------
JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","useUnifiedArtistsList","1"]]}'
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"useUnifiedArtistsList",
"1"
]
]
}
JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","bandInArtists","~"]]}'
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"bandInArtists",
"~"
]
]
}
JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","composerInArtists","~"]]}'
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"composerInArtists",
"~"
]
]
}
JSONSTR='{"id":1,"method":"slim.request","params":["",["pref","conductorInArtists","~"]]}'
echo "$JSONSTR" | jq
{
"id": 1,
"method": "slim.request",
"params": [
"",
[
"pref",
"conductorInArtists",
"~"
]
]
}
--------------------
..you end up with prefs:
Code:
--------------------
useUnifiedArtistsList: '1'
bandInArtists: '~'
composerInArtists: '~'
conductorInArtists: '~'
--------------------
...and having the tildy quoted has the effect of checking the pref's
checkbox -- the opposite desired effect.
------------------------------------------------------------------------
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