From dbb994181336c00bcff88e7ed9a914d895f0c2f4 Mon Sep 17 00:00:00 2001 From: shaun Date: Mon, 30 Mar 2015 19:36:43 +1100 Subject: [PATCH] use Player.OnPlay instead of Playlist.OnAdd --- 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 ab4a7b2b..1b5af7a0 100644 --- a/resources/lib/KodiMonitor.py +++ b/resources/lib/KodiMonitor.py @@ -29,9 +29,9 @@ class Kodi_Monitor(xbmc.Monitor): host = addon.getSetting('ipaddress') server = host + ":" + port downloadUtils = DownloadUtils() - + #print "onNotification:" + method + ":" + sender + ":" + str(data) #player started playing an item - - if "Playlist.OnAdd" in method: + if method == "Player.OnPlay": print "playlist onadd is called" jsondata = json.loads(data) if jsondata != None: