I'm hoping someone would be kind enough help get me with this. I've tried throwing everything and the kitchen sink at this with not much luck.
I would like to execute playback of a Spotify Music addon playlist. I am able to pull up the Music addon's root menu\directory items via curl... However, I'm not sure what to do next. Here's the command:
json:
curl.exe -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"id\": \"1\", \"method\": \"Files.GetDirectory\", \"params\": {\"directory\": \"plugin://plugin.audio.spotify/\"}}" http://localhost:8091/jsonrpc
Here's the result:
{"id":"1","jsonrpc":"2.0","result":{"files":[{"file":"plugin://plugin.audio.spotify/?action=browse_main_library","filetype":"directory","label":"
My Music","type":"unknown"},{"file":"plugin://plugin.audio.spotify/?action=browse_main_explore","filetype":"directory","label":"
Explore","type":"unknown"},{"file":"plugin://plugin.audio.spotify/?action=search","filetype":"directory","label":"
Search","type":"unknown"},{"file":"plugin://plugin.audio.spotify/?action=browse_playback_devices","filetype":"directory","label":"
Playback device: Local playback on this device","type":"unknown"},{"file":"plugin://plugin.audio.spotify/?action=switch_user","filetype":"file","label":"Current user: mkanet","type":"unknown"}],"limits":{"end":5,"start":0,"total":5}}}
So, how can I playback the Spotify playlist... "My Music\Night Rider" via command line? Currently, I can only see the "My Music" menu item from my previous query above.
Edit: As desperate as I am, I've been just throwing anything I can think of at the command line (hoping maybe I'll accidentally get lucky). I've looked at the Spotify Addon via the Kodi Web Interface.. This is the best I could come up with; which, of course returns
no results.
json:
curl -s --data-binary '{\"jsonrpc\":\"2.0\",\"id\":\"1\",\"method\":\"Player.Open\",\"params\":{\"item\":{\"file\":\"plugin://plugin.audio.spotify/?action=play_playlist&ownerid=spotify&playlistid=37i9dQZF1DX6GJXiuZRisr\"}}}' -H 'content-type: application/json;' http://localhost:8091/jsonrpc
Edit #2: While waiting for someone two help out, I also tried to do this with the Google Music addon. Same result... no errors no result:
json:
curl -s --data-binary '{\"jsonrpc\":\"2.0\",\"id\":\"1\",\"method\":\"Player.Open\",\"params\":{\"item\":{\"file\":\"plugin.audio.googlemusic.exp/?path=playlist&playlist_id=thumbsup\"}}}' -H 'content-type: application/json;' http://localhost:8091/jsonrpc
Any help would be greatly appreciated!
MKANET