use Player.OnPlay instead of Playlist.OnAdd

This commit is contained in:
shaun 2015-03-30 19:36:43 +11:00
parent 123dd99601
commit dbb9941813
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ class Kodi_Monitor(xbmc.Monitor):
host = addon.getSetting('ipaddress') host = addon.getSetting('ipaddress')
server = host + ":" + port server = host + ":" + port
downloadUtils = DownloadUtils() downloadUtils = DownloadUtils()
#print "onNotification:" + method + ":" + sender + ":" + str(data)
#player started playing an item - #player started playing an item -
if "Playlist.OnAdd" in method: if method == "Player.OnPlay":
print "playlist onadd is called" print "playlist onadd is called"
jsondata = json.loads(data) jsondata = json.loads(data)
if jsondata != None: if jsondata != None: