Beispiel #1
0
#from 1-99 functions related to the addon menu functions 
if mode==None:
      print("Installed version: v" + versao)
      if settings.getSetting('autoconfig') == "true": first_conf()
      else:
          if settings.getSetting('last_version_check') != versao:
              try:check_for_updates()
              except: pass
      main_menu()
elif mode==1: ace.acestreams(name,iconimage,url)
elif mode==2: sop.sopstreams(name,iconimage,url)
elif mode==3: go_to_id('sop_id')
elif mode==4: go_to_id('ace')
elif mode==5: go_to_id('sop_url')
elif mode==6: ace.load_local_torrent()
elif mode==7: stop_aceengine()
elif mode==8: list_history()
elif mode==9: remove_history()
elif mode==10: my_streams_menu()
elif mode==11: add_stream()
elif mode==12: add_stream(name,url,iconimage)
elif mode==13: remove_stream(name,url)
#from 300-399 Advanced functions
elif mode==300: advanced_menu()
elif mode==301: import_advancedxml()
elif mode==302: recoverbackup_advancedxml()
elif mode==303: backup_advancedxml()
elif mode==304: delete_advancedxml()
elif mode==305: set_engine_setting(url)
elif mode==306: remove_lock()
elif mode==307: clear_cache(url)
Beispiel #2
0
                pass
    main_menu()
elif mode == 1:
    ace.acestreams(name, iconimage, url)
elif mode == 2:
    sop.sopstreams(name, iconimage, url)
elif mode == 3:
    go_to_id('sop_id')
elif mode == 4:
    go_to_id('ace')
elif mode == 5:
    go_to_id('sop_url')
elif mode == 6:
    ace.load_local_torrent()
elif mode == 7:
    stop_aceengine()
elif mode == 8:
    list_history()
elif mode == 9:
    remove_history()
elif mode == 10:
    my_streams_menu()
elif mode == 11:
    add_stream()
elif mode == 12:
    add_stream(name, url, iconimage)
elif mode == 13:
    remove_stream(name, url)
    #from 300-399 Advanced functions
elif mode == 300:
    advanced_menu()