Ejemplo n.º 1
0
    else:
        quit()

elif mode == 'updateaddons':
    choice = xbmcgui.Dialog().yesno(
        AddonTitle,
        'Please confirm that you wish to force update all addons and '
        'repositories immediately.')
    if choice == 1:
        xbmc.executebuiltin("UpdateAddonRepos")
        xbmc.executebuiltin("UpdateLocalAddons")
    else:
        quit()

elif mode == 'customkeys':
    installer.keymaps()

# ##############  SPEEDTEST  #################
elif mode == "runspeedtest":
    fullspeedtest()

elif mode == "runtest":
    speedtest.runfulltest(url)

elif mode == 'call_restore':
    freshstart.startup_freshstart()

# #########  NOTIFICATIONS  ##############
elif mode == 'toggle_notify':
    toggle_notify()
Ejemplo n.º 2
0
    maintool.auto_weekly_clean_on_off()

elif mode == 'reloadskin':
    if xbmcgui.Dialog().yesno(AddonTitle, 'Please confirm that you wish to reload the skin cache immediately.'):
        xbmc.executebuiltin("ReloadSkin()")
    else: quit()
    
elif mode == 'updateaddons':
    choice = xbmcgui.Dialog().yesno(AddonTitle, 'Please confirm that you wish to force update all addons and repositories immediately.')
    if choice == 1:
        xbmc.executebuiltin("UpdateAddonRepos")
        xbmc.executebuiltin("UpdateLocalAddons")    
    else: quit()

elif mode == 'customkeys':
        installer.keymaps()

# ##############  SPEEDTEST  #################
elif mode == "runspeedtest":
        fullspeedtest()

elif mode == "runtest":
        speedtest.runfulltest(url)

elif mode == 'call_restore':
        freshstart.startup_freshstart()
        
# #########  NOTIFICATIONS  ##############
elif mode == 'toggle_notify':
        toggle_notify()