Hello.
I'm looking to make a pictures slideshow when clicking on a widget. But I cannot use SlideShow() because pictures can be stored in differents directories.
So I'm using JSON and Playlist.Add to add differents pictures to playlist and play it.
But I can't add picture to playlist
My code :
Code:
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Playlist.Add", "params": {"playlistid": 1, "item": {"type": {"file" : "C:\Photos\Leane_20111207_195415.jpg"}, "id": 0}}, "id": 1}')
Error in LOG :
09:46:03 T:3736 ERROR: JSONRPC: Failed to parse '{"jsonrpc": "2.0", "method": "Playlist.Add", "params": {"playlistid": 1, "item": {"type": {"file" : "C:\Photos\Leane_20111207_195415.jpg"}, "id": 0}}, "id": 1}'
09:46:03 T:3736 NOTICE: ('JSON=', {u'jsonrpc': u'2.0', u'id': None, u'error': {u'message': u'Parse error.', u'code': -32700}})
I have also try :
Code:
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Playlist.Add", "params": {"playlistid": 1, "item": {"file" : "C:\Photos\Leane_20111207_195415.jpg", "id": 0}}, "id": 1}')
As in this post :
http://forum.xbmc.org/showthread.php?tid...pid1050628
But same parse error ?
Where is my mistake ? Does JSON playlist is the solution for playing picture slideshow from differents directories ?
Thanks.