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

View file

@ -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: