def parseDiskTypes(): settings = addon.getSetting(consts.settingDiskTypes) dic = sutils.get_params(settings) xbmc.log(msg="smartmontools: stored disk types were read: " + str(len(dic)), level=xbmc.LOGDEBUG) return dic
if addon.getSetting("performMountChecks") == "true": if item.isMounted() : item.unmount(); if not item.isMounted() : return True; else: return False; else: return False; else: item.unmount(); return True; # if checks are disabled, assert that it was sucessful... params = sutils.get_params(); index = None; if debug: print("Truecrypt initial params:" + str(params)); try: index = int(params["index"]); except: pass; if debug: print("Truecrypt parameters passed to script: "+ str(sys.argv)); if index == None : addAdditionalTask("[B]" +addon.getLocalizedString(50039) + "[/B]", -99); # Select item:
if addon.getSetting("performMountChecks") == "true": if item.isMounted(): item.unmount() if not item.isMounted(): return True else: return False else: return False else: item.unmount() return True # if checks are disabled, assert that it was sucessful... params = sutils.get_params() index = None if debug: print("Truecrypt initial params:" + str(params)) try: index = int(params["index"]) except: pass if debug: print("Truecrypt parameters passed to script: " + str(sys.argv)) if index == None: addAdditionalTask("[B]" + addon.getLocalizedString(50039) + "[/B]", -99)
def parseDiskTypes(): settings = addon.getSetting(consts.settingDiskTypes); dic = sutils.get_params(settings); xbmc.log(msg="smartmontools: stored disk types were read: " + str(len(dic)) , level=xbmc.LOGDEBUG); return dic;