2017-09-24, 20:55
(2017-09-03, 21:16)marcelveldt Wrote: Try this:
Code:http://login:[email protected]:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"plugin://plugin.audio.spotify/?action=connect_playback&playlistid=SPOTIFYPLAYLISTID&ownerid=SPOTIFYOWNERID&offset=0"}},"id":"1"}
That way you should be able to start the playback of a playlist. You should be able to grab the playlistID and the ownerID from the spotify URI
Tired it with no success. the answer is:
Code:
{"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"}
in the log it look like this:
Code:
14:41:37.930 T:140443292550912 DEBUG: CWebServer[8080]: request received for /jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22Player.Open%22,%22params%22:{%22item%22:{%22file%22:%22plugin://plugin.audio.spotify/?action=connect_playback&playlistid=4MnlMWuJ3fA2eJIgRBM0fU&ownerid=22gbe72j2xnlfzlxnzgoo72xi&offset=0%22}},%22id%22:%221%22}
14:41:37.930 T:140443292550912 ERROR: JSONRPC: Failed to parse '{"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"plugin://plugin.audio.spotify/?action=connect_playback'
Probably just have an argument or something wrong in it. I tried with 2 differents playlist.