]) #check if program should be run if (mode != -1): #run the profile backup backup = XbmcBackup() if (mode == 2): #open the settings dialog utils.openSettings() elif (backup.remoteConfigured()): if (mode == backup.Restore): #get list of valid restore points restorePoints = backup.listBackups() pointNames = [] folderNames = [] for aDir in restorePoints: pointNames.append(aDir[1]) folderNames.append(aDir[0]) selectedRestore = -1 if ("archive" in params): #check that the user give archive exists if (params['archive'] in folderNames): #set the index selectedRestore = folderNames.index(params['archive']) utils.log(str(selectedRestore) + " : " + params['archive'])
# mode = xbmcgui.Dialog().select(utils.getString(30010) + " - " + utils.getString(30023),[utils.getString(30016),utils.getString(30017),utils.getString(30099)]) mode = 1 #check if program should be run if(mode != -1): #run the profile backup backup = XbmcBackup() if(mode == 2): #open the settings dialog utils.openSettings() elif(backup.remoteConfigured()): if(mode == backup.Restore): #get list of valid restore points restorePoints = backup.listBackups() pointNames = [] folderNames = [] for aDir in restorePoints: pointNames.append(aDir[1]) folderNames.append(aDir[0]) selectedRestore = -1 if("archive" in params): #check that the user give archive exists if(params['archive'] in folderNames): #set the index selectedRestore = folderNames.index(params['archive']) utils.log(str(selectedRestore) + " : " + params['archive'])