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 if settings.getSetting('enter_channel_list') == "false": main_menu() else: parsers.addon_parsers_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:
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 if settings.getSetting('enter_channel_list') == "false": main_menu() else: parsers.addon_parsers_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() #from 100-199 functions related to xml lists elif mode==100: xml_lists_menu() elif mode==101: list_type(url) elif mode==102: get_channels(name,url) elif mode==103: getChannelItems(name,url,"fanart") elif mode==104: getRegexParsed(regexs, url)
elif mode==109: get_groups(url) #from 200-299 Favourites elif mode==200: addon_favourites() elif mode==201: add_to_addon_favourites(name,url,iconimage) elif mode==202: remove_addon_favourites(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) #from 400-499 Site parsers elif mode==400: parsers.addon_parsers_menu() elif mode==401: package = 'resources.core.parsers.' + parser tree = "main" parser_module = getattr(__import__(package, fromlist=[tree]), tree) parser_module.module_tree(name,url,iconimage,mode,parser,parserfunction) elif mode==402: parsers.add_new_parser(url='') elif mode==403: parsers.remove_parser(iconimage) elif mode==404: parsers.runscript() elif mode==405: parsers.add_new_parser(url) elif mode==406: parsers.sync_parser() elif mode==407: parsers.sync_single_parser(parser) elif mode==408: parsers.clear_parser_trace() xbmcplugin.endOfDirectory(int(sys.argv[1]))
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) elif mode == 308: set_linux_engine_setting(url) # from 400-499 Site parsers elif mode == 400: parsers.addon_parsers_menu() elif mode == 401: parsers.parser_check() package = "resources.core.parsers." + parser tree = "main" parser_module = getattr(__import__(package, fromlist=[tree]), tree) parser_module.module_tree(name, url, iconimage, mode, parser, parserfunction) elif mode == 402: parsers.add_new_parser(url="") elif mode == 403: parsers.remove_parser(iconimage) elif mode == 404: parsers.runscript() elif mode == 405: parsers.add_new_parser(url) elif mode == 406: