First of all ... thank you very much for this usefull plugin and for still supporting it !
here comes my problem with the JSONRPCEvent "Handler" (Latest Frodo Nightly build):
when i play a video (or any other "play" action basically) i get the following error:
Code: Select all
23:31:45 Raw event: {u'params': {u'data': {u'playlistid': 1}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Playlist.OnClear'}
23:31:45 Error: JSON-RPC event (<type 'exceptions.KeyError'>, KeyError('item',), <traceback object at 0x049696E8>)
23:31:45 Not listening for XBMC JSON-RPC events
other events from xbmc seem to be fine. But i'm interested in knowing if something is playing in XBMC... and the above error disconnects EG from XBMC everytime this error happens.
if i comment the following part:
Code: Select all
#except:
# import sys
# eg.PrintError('Error: JSON-RPC event ' + str(sys.exc_info()))
# #eg.PrintError('Error: JSON-RPC event')
# break
i get the following error:
Code: Select all
23:37:26 Raw event: {u'params': {u'data': {u'playlistid': 1}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Playlist.OnClear'}
23:37:26 message :Playlist.OnClear
23:37:26 Exception in thread Thread-7:
23:37:26 Traceback (most recent call last):
23:37:26 File "threading.pyc", line 532, in __bootstrap_inner
23:37:26 File "threading.pyc", line 484, in run
23:37:26 File "C:\_Applications\EventGhost\plugins\XBMCRepeat\__init__.py", line 1293, in JSONRPCEvents
23:37:26 event += '.' + payload['item']['type']
23:37:26 KeyError: 'item'
if i uncomment the payload handling like:
Code: Select all
#payload = message['params']['data']
#if payload:
# event += '.' + payload['item']['type']
# del payload['item']['type']
# if not payload['item']:
# del payload['item']
i DO NOT get any errors anymore for movies (but obviously loosing the payload stuff in events

)
But i DO GET the following error by opening a playlist file:
Code: Select all
23:42:07 Exception in thread Thread-7:
23:42:07 Traceback (most recent call last):
23:42:07 File "threading.pyc", line 532, in __bootstrap_inner
23:42:07 File "threading.pyc", line 484, in run
23:42:07 File "C:\_Applications\EventGhost\plugins\XBMCRepeat\__init__.py", line 1281, in JSONRPCEvents
23:42:07 message = json.loads(message)
23:42:07 File "json\__init__.pyc", line 307, in loads
23:42:07 File "json\decoder.pyc", line 322, in decode
23:42:07 ValueError: Extra data: line 15 column 1 - line 29 column 1 (char 182 - 364)
Any help would be very much appreciated.
I'm using the latest Version of the Plugin: 0.6.3e
Eventghost Version: 0.4.1.r1540
Cheers
dere