Exemplo n.º 1
0
print("Name: "+str(name))
print("Iconimage: "+str(iconimage))
print("Parser: "+str(parser))
print("Parserfunction: "+str(parserfunction))

#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()
Exemplo n.º 2
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: