...version released compared to what he is running
As discussed here
Two copy & paste monsters ;-)
Updated PR with extended xbmc.sleep() and also wait after video finishes.
also fixed the c/p monster in strings.po
Although this is a feature it would be useful if it could be included in this monthly
5 seconds after the video finishes is perfect :) I checked th Frodo debug log and it gets hit with debug spam during video play, from what I can tell waking the interpreter constructs a new thread state and does some tracing. Player.onPlaybackEnded (if it's hooked up) could remove thread wakes all together but adds complexity. If this advantage is something we'd want I can help change it to event-based sleep tonight. Fortunately, I'm not seeing any debug spamming n 13alpha2.
jfcarrol hide those interpreter constructs after Frodo release. Was also thinking about using xbmc.Player.onPlaybackEnded however that would also require the script to be running a deamon (correct me if i'm wrong) so it would be running al the time.
Now i use XBMCs internal clock to just start the script once every 24 hours and i figured it wouldn't hurt much if i did it this way because the sleep is only when you are actually watching a video so it's not hit often.
idea's improvements welcome of course and advantage is the script can be updated through repo :)
I was thinking only create the daemon when needed (only when a video's playing) like this garbear@81f0672.
The commit above doesn't work though, onPlayBackEnded() isn't firing and i'm not sure why (any ideas?) so maybe creating the daemon only when needed isn't an option.
@MartijnKaijser can you please add the last commit XBMC-Addons/service.xbmc.versioncheck@a923767
It should fix that the script could get killed by xbmc before the apt cache was fully updated.
Btw I already have upgrading xbmc working on ubuntu, but it needs more testing and polish.
if someone is interested: https://github.com/wsnipex/service.xbmc.versioncheck/tree/upgrade
[addons] add version check script that notifies user if there's a new…
…er version released compared to what he is running