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

View file

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