mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
use Player.OnPlay instead of Playlist.OnAdd
This commit is contained in:
parent
123dd99601
commit
dbb9941813
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue