Example #1
0
    clear_cache(url)
elif mode == 308:
    set_linux_engine_setting(url)
elif mode == 309:
    set_acestream_engine_cache_folder(url)
elif mode == 310:
    shutdown_hooks()
elif mode == 311:
    set_android_port()
elif mode == 312:
    set_android_cache_aloc()
    #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:
    parsers.sync_parser()
Example #2
0
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:
	parsers.parser_check()
	try:
		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)
	except: mensagemok(translate(40000),translate(400029))
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]))