2014-11-17, 00:04
Hi guys
I've been trying for quite some time to add a "add to playlist" functionality when browsing music but i cant seem to get to right syntax of the current item in my JSON call :
Tried quite a lot :
jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Playlist.Add","params":{"playlistid":0,"item":{"file":"current"}}}
jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Playlist.Add","params":{"playlistid":0,"item":{"file":ListItem.FileNameAndPath}}}
etc
But i cant seem to get it to work. Please help!
I've been trying for quite some time to add a "add to playlist" functionality when browsing music but i cant seem to get to right syntax of the current item in my JSON call :
Tried quite a lot :
jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Playlist.Add","params":{"playlistid":0,"item":{"file":"current"}}}
jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Playlist.Add","params":{"playlistid":0,"item":{"file":ListItem.FileNameAndPath}}}
etc
But i cant seem to get it to work. Please help!