Improve logging

This commit is contained in:
tomkat83 2016-07-22 15:42:37 +02:00
parent ab47ac958a
commit 16dbc726f1

View file

@ -62,10 +62,10 @@ class KodiMonitor(xbmc.Monitor):
utils.window('plex_logLevel', value=currentLog)
def onNotification(self, sender, method, data):
self.logMsg("Method: %s Data: %s" % (method, data), 1)
if data:
data = json.loads(data, 'utf-8')
self.logMsg("Method: %s Data: %s" % (method, data), 1)
if method == "Player.OnPlay":
self.PlayBackStart(data)