2015-11-11, 04:08
I would like to display album art for the track playing in pandoki in my control system but can seem to get it to display.
the album art is displayed in kodi on the screen
The query string i am using is 192.168.1.17:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Player.GetItem", "params": { "properties": ["title", "album", "artist", "duration", "thumbnail", "file", "fanart", "streamdetails"], "playerid": 0 }, "id": "AudioGetItem"}
this is what it is returning
{"id":"AudioGetItem","jsonrpc":"2.0","result":{"item":{"album":"Harvest Moon","artist":["Neil Young"],"duration":343,"fanart":"","file":"http://mediaserver-nz1-t1-1.pandora.com/access/2263877690920948736.mp4?version=4&lid=944056516&token=Tl71CEDYTpp1xXdQ4%2BQoszsIWLFs3i4PsmpoCFN%2F3IWUN53XiOH4RW1KYTIFD2L7uqBellnSd6obT6c6IEjPtfM7mXIGyZWUK0n4nmDkKiqsYbfxZRp1Hm%2FLeg06QwK3MHrmQmKVv7FdUDKS5E8WGxV7Znm%2FYceSjrf2qRX0SuPC5KKLEzcNs3q6R6z2dpNpj58lySoNkWBqtsvfK%2BJ7w4gKNy6Q6q9GYYHht%2B16AqvgM9SqGxGlgiBr0X2AMjNwVcOQd70lfcduiDoyfriefwjWM7R0FpD0HrfYlC00VotmGe7zy%2Bn3hoyvBgFOa9Pal54Q%2FD0Vzv2bhOPxyhZC9SI%2F84A9Hydb17VMXQcabWuA7OF8ZeKGFEi6UJ3Ex4gH","label":"War Of Man","thumbnail":"","title":"War Of Man","type":"song"}}}
i have found if i query the playlist i can find images
192.168.1.17:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Playlist.GetItems", "params": { "properties": ["thumbnail"], "playlistid": 0 }, "id": 1}
returns
{"id":1,"jsonrpc":"2.0","result":{"items":[{"label":"The Kinks","thumbnail":"image://http%3a%2f%2fcont-ch1-2.pandora.com%2fimages%2fpublic%2famz%2f5%2f3%2f1%2f5%2f800055135_500W_500H.jpg/","type":"song"},{"label":"Pandoki - Queuing Neil Young Radio","thumbnail":"image://C%3a%5cUsers%5cdave%5cAppData%5cRoaming%5cKodi%5caddons%5cplugin.audio.pandoki%5cicon.png/","type":"song"},{"label":"Fleetwood Mac","thumbnail":"image://http%3a%2f%2fcont-ch1-1.pandora.com%2fimages%2fpublic%2frovi%2falbumart%2f8%2f2%2f1%2f4%2f075992724128_500W_500H.jpg/","type":"song"},{"label":"Crosby, Stills, Nash & Young","thumbnail":"image://http%3a%2f%2fcont-ch1-2.pandora.com%2fimages%2fpublic%2frovi%2falbumart%2f5%2f2%2f8%2f4%2f075678264825_500W_500H.jpg/","type":"song"}],"limits":{"end":4,"start":0,"total":4}}}
how can i do the same for currently playing
the album art is displayed in kodi on the screen
The query string i am using is 192.168.1.17:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Player.GetItem", "params": { "properties": ["title", "album", "artist", "duration", "thumbnail", "file", "fanart", "streamdetails"], "playerid": 0 }, "id": "AudioGetItem"}
this is what it is returning
{"id":"AudioGetItem","jsonrpc":"2.0","result":{"item":{"album":"Harvest Moon","artist":["Neil Young"],"duration":343,"fanart":"","file":"http://mediaserver-nz1-t1-1.pandora.com/access/2263877690920948736.mp4?version=4&lid=944056516&token=Tl71CEDYTpp1xXdQ4%2BQoszsIWLFs3i4PsmpoCFN%2F3IWUN53XiOH4RW1KYTIFD2L7uqBellnSd6obT6c6IEjPtfM7mXIGyZWUK0n4nmDkKiqsYbfxZRp1Hm%2FLeg06QwK3MHrmQmKVv7FdUDKS5E8WGxV7Znm%2FYceSjrf2qRX0SuPC5KKLEzcNs3q6R6z2dpNpj58lySoNkWBqtsvfK%2BJ7w4gKNy6Q6q9GYYHht%2B16AqvgM9SqGxGlgiBr0X2AMjNwVcOQd70lfcduiDoyfriefwjWM7R0FpD0HrfYlC00VotmGe7zy%2Bn3hoyvBgFOa9Pal54Q%2FD0Vzv2bhOPxyhZC9SI%2F84A9Hydb17VMXQcabWuA7OF8ZeKGFEi6UJ3Ex4gH","label":"War Of Man","thumbnail":"","title":"War Of Man","type":"song"}}}
i have found if i query the playlist i can find images
192.168.1.17:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Playlist.GetItems", "params": { "properties": ["thumbnail"], "playlistid": 0 }, "id": 1}
returns
{"id":1,"jsonrpc":"2.0","result":{"items":[{"label":"The Kinks","thumbnail":"image://http%3a%2f%2fcont-ch1-2.pandora.com%2fimages%2fpublic%2famz%2f5%2f3%2f1%2f5%2f800055135_500W_500H.jpg/","type":"song"},{"label":"Pandoki - Queuing Neil Young Radio","thumbnail":"image://C%3a%5cUsers%5cdave%5cAppData%5cRoaming%5cKodi%5caddons%5cplugin.audio.pandoki%5cicon.png/","type":"song"},{"label":"Fleetwood Mac","thumbnail":"image://http%3a%2f%2fcont-ch1-1.pandora.com%2fimages%2fpublic%2frovi%2falbumart%2f8%2f2%2f1%2f4%2f075992724128_500W_500H.jpg/","type":"song"},{"label":"Crosby, Stills, Nash & Young","thumbnail":"image://http%3a%2f%2fcont-ch1-2.pandora.com%2fimages%2fpublic%2frovi%2falbumart%2f5%2f2%2f8%2f4%2f075678264825_500W_500H.jpg/","type":"song"}],"limits":{"end":4,"start":0,"total":4}}}
how can i do the same for currently playing