move the log to inside the message function call to reduce log noise

This commit is contained in:
faush01 2015-03-19 15:37:20 +11:00
parent 74df6ed2ee
commit 7d37fe590d
1 changed files with 2 additions and 2 deletions

View File

@ -31,12 +31,12 @@ class Kodi_Monitor(xbmc.Monitor):
jsondata = json.loads(data)
if jsondata != None:
xbmc.log("Kodi_Monitor -> onNotification -> VideoLibrary.OnUpdate : " + str(data))
playcount = None
playcount = jsondata.get("playcount")
item = jsondata.get("item").get("id")
type = jsondata.get("item").get("type")
if playcount != None:
xbmc.log("Kodi_Monitor -> onNotification -> VideoLibrary.OnUpdate : " + str(data))
WriteKodiDB().updatePlayCountFromKodi(item, type, playcount)