def listCatchuptv_menus(menu_url, pluginhandle): level = 0 filename = util.filename_creator(menu_url) try: if util.get_mod(filename) == False: x = pickle.load(open(filename, "rb")) if util.get_mod(filename) == True: x = scrap_menus.scrapODmenus(menu_url, level, filename) except: x = scrap_menus.scrapODmenus(menu_url, level, filename) #create cache files and returns the database for i in x: name = i[0] url = i[1] mode = i[2] join = "name="+urllib.quote_plus(name)+"&end_of_url="+urllib.quote_plus(url) thumbUrl = "" util.addDir(name, join, mode, thumbUrl) added = True xbmcplugin.endOfDirectory(pluginhandle)
def listCatchtv_submenus(url, pluginhandle, sky_main): sub_url = sky_main+urllib.unquote_plus(util.parameters_string_to_dict(url,0)['end_of_url']) level = 1 filename = util.filename_creator(sub_url) try: if util.get_mod(filename) == False: x = pickle.load(open(filename, "rb")) if util.get_mod(filename) == True: x = scrap_menus.scrapODmenus(sub_url, level, filename) except: x = scrap_menus.scrapODmenus(sub_url, level, filename) #create cache files and returns the database for i in x: name = i[0] url = i[1] mode = i[2] join = "name="+urllib.quote_plus(name)+"&end_of_url="+urllib.quote_plus(url) thumbUrl = "" util.addDir(name, join, mode, thumbUrl) added = True xbmcplugin.endOfDirectory(pluginhandle)
def listCatchuptv_menus(menu_url, pluginhandle): level = 0 filename = util.filename_creator(menu_url) try: if util.get_mod(filename) == False: x = pickle.load(open(filename, "rb")) if util.get_mod(filename) == True: x = scrap_menus.scrapODmenus(menu_url, level, filename) except: x = scrap_menus.scrapODmenus( menu_url, level, filename) #create cache files and returns the database for i in x: name = i[0] url = i[1] mode = i[2] join = "name=" + urllib.quote_plus( name) + "&end_of_url=" + urllib.quote_plus(url) thumbUrl = "" util.addDir(name, join, mode, thumbUrl) added = True xbmcplugin.endOfDirectory(pluginhandle)
def listCatchtv_submenus(url, pluginhandle, sky_main): sub_url = sky_main + urllib.unquote_plus( util.parameters_string_to_dict(url, 0)['end_of_url']) level = 1 filename = util.filename_creator(sub_url) try: if util.get_mod(filename) == False: x = pickle.load(open(filename, "rb")) if util.get_mod(filename) == True: x = scrap_menus.scrapODmenus(sub_url, level, filename) except: x = scrap_menus.scrapODmenus( sub_url, level, filename) #create cache files and returns the database for i in x: name = i[0] url = i[1] mode = i[2] join = "name=" + urllib.quote_plus( name) + "&end_of_url=" + urllib.quote_plus(url) thumbUrl = "" util.addDir(name, join, mode, thumbUrl) added = True xbmcplugin.endOfDirectory(pluginhandle)