Improve logging
This commit is contained in:
parent
ab47ac958a
commit
16dbc726f1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue