From 7d37fe590d0d0cbb7ee6228e012c32746822dced Mon Sep 17 00:00:00 2001 From: faush01 Date: Thu, 19 Mar 2015 15:37:20 +1100 Subject: [PATCH] move the log to inside the message function call to reduce log noise --- resources/lib/KodiMonitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/KodiMonitor.py b/resources/lib/KodiMonitor.py index ab55c281..74af9610 100644 --- a/resources/lib/KodiMonitor.py +++ b/resources/lib/KodiMonitor.py @@ -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)