2011-11-27, 23:30
Hitcher Wrote:Neither would my other idea running it on unload of VideoFullScreen, VideoOverlay, MusicVisualisation and MusicOverlay I guess.
I have no idea what service addons are but can they be used to check the databases?
it can easiliy be done with a service add-on. You can integrate it into the watchlist itself by addon this line to addon.xml:
Code:
<extension point="xbmc.service" library="service.py" start="startup|login"/>
and create service.py (or something):
Code:
# starts update/sync
def autostart():
xbmc.executebuiltin('XBMC.AlarmClock(Watchlist,XBMC.RunScript(script.watchlist),00:00:10,silent)')
xbmc.executebuiltin('XBMC.AlarmClock(WatchlistService,XBMC.RunScript(script.watchlist),%s:00:00,silent,loop)'%settings.service_time)
autostart()
By doing this the skins are still able to execute the script when they need to.