2013-09-17, 22:27
Hi, I am just doing some simple experiments with controlling XBMC via an external Python script. I am using the JSON-RPC and most commands are working as expected but there seems to be an issue with the Player.Open command when tying to play a TV episode from the library.
If I want to play a particular movie I use:
and I get the result
and the movie plays fine.
However if I want to play a particular episode I do:
and get
Why is this!! How do I make it play episodes from the library. I can play them using the file path with Player.Open but I want it to know its playing a library item and update the play count etc.
Thanks
Tom
If I want to play a particular movie I use:
Quote:[{'jsonrpc': '2.0', 'params': {'item': {'movieid': 1271}}, 'method': 'Player.Open', 'id': 1}]
and I get the result
Quote:[{u'jsonrpc': u'2.0', u'id': 1, u'result': u'OK'}]
and the movie plays fine.
However if I want to play a particular episode I do:
Quote:[{'jsonrpc': '2.0', 'params': {'item': {'episodeid': 1271}}, 'method': 'Player.Open', 'id': 1}]
and get
Quote:[{u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Invalid params.', u'code': -32602}}]
Why is this!! How do I make it play episodes from the library. I can play them using the file path with Player.Open but I want it to know its playing a library item and update the play count etc.
Thanks
Tom