2013-06-30, 20:31
(2013-06-25, 05:19)stanley87 Wrote: And, yes - possible to add 5x ep's to a playlist
add_playlist_command = {
'jsonrpc': '2.0',
'method': 'Playlist.Add',
'params': {'playlistid':1, 'item': {'file': episodes[season['watchedepisodes']]['file']},
'id': '1'}
json_query(add_playlist_command)
You may also want to clear the playlist before starting to add items:
clear_playlist_command = {
'jsonrpc': '2.0',
'method': 'Playlist.Clear',
'params': {'playlistid':1},
'id': '1'}
json_query(clear_playlist_command)
You will also need to use the below play command instead:
play_command = {
'jsonrpc': '2.0',
'method': 'Player.Open',
'params': {'item': {'playlistid':1}},
'id': '1'}
json_query(play_command)
excuse my ignorance, but where would i be adding this?
end of the script, beginning?