onPlayBackStarted not working for all media - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: onPlayBackStarted not working for all media (/showthread.php?tid=178355) |
onPlayBackStarted not working for all media - schumi2004 - 2013-11-18 I am a long time user of a script (created by someone else which i tweaked a bit) that stops all NZBget activity on certain actions, it always seems to work until recently. I can't say when it started failing i just noticed it after checking logging. This is the script: http://pastebin.com/bbRJYaBw The idea is to stop NZBget when i watch live TV (pvr streams) or Youtube (http streams) and a folder of choice if wanted. What happens is this. When i install script for the first time and configure it to stop NZBget for LiveTV and HTTP streams it works but only for the very first time for LiveTV (pvr). When i then put system in hibernate/sleepmode and wake it up again it always fails for LiveTV and LiveTV only, all the rest still seems to work (HTTP, Folder PATH) I added a bunch of debug lines to find out why it doesn't work for LiveTV, without luck. I start a LiveTV stream and i don't see it checking PATH content, i play a Youtube stream and then it does. I was hoping someone with some more skills could find the issue here because i'm kinda lost in finding it myself. Thanks in advance. RE: onPlayBackStarted not working for all media - schumi2004 - 2014-01-24 I modified the script several times now and at initial installation the script functions as it should. After a couple of system restarts it eventually fails to detect LiveTV playback and i can't seem to figure out why it does that. https://www.dropbox.com/s/qeyl7vecs0ksr0i/service.nzbget.rar What did i do wrong here? |