added check to settings.xml before loading new cron timer

fixed bug where disabling scheduler did not turn it off
This commit is contained in:
robweber
2012-09-13 09:52:17 -05:00
parent a066491757
commit 2fd7b130c7
2 changed files with 38 additions and 16 deletions

View File

@ -4,7 +4,9 @@ import xbmcaddon
__addon_id__= 'script.xbmcbackup'
__Addon = xbmcaddon.Addon(__addon_id__)
#global functions for logging and encoding
def data_dir():
return __Addon.getAddonInfo('profile')
def log(message,loglevel=xbmc.LOGNOTICE):
xbmc.log(encode(__addon_id__ + ": " + message),level=loglevel)