cpd73 wrote:
> As you know I do not use any streaming service, so I cannot check any of
> this myself. When called from an Artist's album list, material sends:
>
> >
Code:
--------------------
> >
> ["browseonlineartist","items",0,25000,"service_id:spotify","artist_id:8120"]
>
--------------------
> >
This for once has nothing to do with streaming services, but is a
SlimBrowse convention.
Above call would return:
Code:
--------------------
{
"method": "slim.request",
"result": {
"count": 2,
"loop_loop": [
{
"id": "0",
"name": "Ayo",
"image":
"/imageproxy/https%3A%2F%2Fi.scdn.co%2Fimage%2Fab67616d0000b273276fe1f86006ae72568e5335/image.png",
"isaudio": 0,
"hasitems": 1
},
{
"id": "1",
"name": "Ayo",
"image":
"/imageproxy/https%3A%2F%2Fi.scdn.co%2Fimage%2F959e6536abb32cd3de926ee7b398f02764b5f96a/image.png",
"isaudio": 0,
"hasitems": 1
}
]
},
"params": [
"ac:bc:32:ef:ae:d1",
[
"browseonlineartist",
"items",
"0",
25000,
"service_id:spotify",
"artist_id:900"
]
],
"id": 0
}
--------------------
As you can see you only get some menu item without any command
information. They can be shown, but won't do anything.
Now add "menu:1" as a parameter:
Code:
--------------------
{
"params": [
"ac:bc:32:ef:ae:d1",
[
"browseonlineartist",
"items",
"0",
25000,
"service_id:spotify",
"artist_id:900",
"menu:1"
]
],
"id": 0,
"method": "slim.request",
"result": {
"base": {
"actions": {
"set-preset-1": {
"player": 0,
"itemsParams": "presetParams",
"cmd": [
"jivefavorites",
"set_preset",
"key:1"
]
},
"playControl": {
"cmd": [
"browseonlineartist",
"items"
],
"player": 0,
"itemsParams": "playControlParams",
"window": {
"isContextMenu": 1
},
"params": {
"_quantity": "25000",
"service_id": "spotify",
"_index": "0",
"artist_id": "900",
"menu": "1"
}
},
"set-preset-2": {
"player": 0,
"itemsParams": "presetParams",
"cmd": [
"jivefavorites",
"set_preset",
"key:2"
]
},
"set-preset-8": {
"player": 0,
"itemsParams": "presetParams",
"cmd": [
"jivefavorites",
"set_preset",
"key:8"
]
},
"set-preset-4": {
"itemsParams": "presetParams",
"player": 0,
"cmd": [
"jivefavorites",
"set_preset",
"key:4"
]
},
"more": {
"cmd": [
"browseonlineartist",
"items"
],
"window": {
"isContextMenu": 1
},
"itemsParams": "params",
"player": 0,
"params": {
"menu": "browseonlineartist"
}
},
"set-preset-0": {
"cmd": [
"jivefavorites",
"set_preset",
"key:0"
],
"player": 0,
"itemsParams": "presetParams"
},
"set-preset-5": {
"itemsParams": "presetParams",
"player": 0,
"cmd": [
"jivefavorites",
"set_preset",
"key:5"
]
},
"add-hold": {
"itemsParams": "params",
"player": 0,
"params": {
"menu": "browseonlineartist"
},
"cmd": [
"browseonlineartist",
"playlist",
"insert"
]
},
"go": {
"cmd": [
"browseonlineartist",
"items"
],
"params": {
"menu": "browseonlineartist"
},
"itemsParams": "params"
},
"add": {
"cmd": [
"browseonlineartist",
"playlist",
"add"
],
"itemsParams": "params",
"player": 0,
"params": {
"menu": "browseonlineartist"
}
},
"play": {
"cmd": [
"browseonlineartist",
"playlist",
"play"
],
"nextWindow": "nowPlaying",
"params": {
"menu": "browseonlineartist"
},
"itemsParams": "params",
"player": 0
},
"set-preset-6": {
"itemsParams": "presetParams",
"player": 0,
"cmd": [
"jivefavorites",
"set_preset",
"key:6"
]
},
"set-preset-9": {
"cmd": [
"jivefavorites",
"set_preset",
"key:9"
],
"player": 0,
"itemsParams": "presetParams"
},
"set-preset-3": {
"itemsParams": "presetParams",
"player": 0,
"cmd": [
"jivefavorites",
"set_preset",
"key:3"
]
},
"set-preset-7": {
"cmd": [
"jivefavorites",
"set_preset",
"key:7"
],
"player": 0,
"itemsParams": "presetParams"
}
}
},
"offset": 0,
"count": 2,
"window": {
"windowStyle": "icon_list"
},
"item_loop": [
{
"params": {
"item_id": "0",
"isContextMenu": 1
},
"textkey": "A",
"text": "Ayo\nFollowers: 137",
"icon":
"/imageproxy/https%3A%2F%2Fi.scdn.co%2Fimage%2Fab67616d0000b273276fe1f86006ae72568e5335/image.png",
"presetParams": {
"favorites_url": "spotify:artist:2GRI80VXnLM7vXaW8aXzNs",
"favorites_type": "audio",
"icon":
"/imageproxy/https%3A%2F%2Fi.scdn.co%2Fimage%2Fab67616d0000b273276fe1f86006ae72568e5335/image.png",
"favorites_title": "Ayo"
}
},
{
"text": "Ayo\nFollowers: 1519",
"textkey": "A",
"icon":
"/imageproxy/https%3A%2F%2Fi.scdn.co%2Fimage%2F959e6536abb32cd3de926ee7b398f02764b5f96a/image.png",
"presetParams": {
"favorites_title": "Ayo",
"icon":
"/imageproxy/https%3A%2F%2Fi.scdn.co%2Fimage%2F959e6536abb32cd3de926ee7b398f02764b5f96a/image.png",
"favorites_type": "audio",
"favorites_url": "spotify:artist:13IJQ4Fa37N1y9mtDjLe2k"
},
"params": {
"item_id": "1",
"isContextMenu": 1
}
}
]
}
}
--------------------
Michael
http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=109624
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins