mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
move the log to inside the message function call to reduce log noise
This commit is contained in:
parent
74df6ed2ee
commit
7d37fe590d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue