def DragonBall(mode, url): from hosts import hostdragon if mode == "Dragonball": hostdragon.Pagedragon() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() if mode == "DBListTitles": hostdragon.ListTitles() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() if mode == "DBListLinks": hostdragon.ListLinks() else: return
def Wbijam(mode, url): from hosts import hostwbijam if mode == "Pagewbijam": url = params['url'] hostwbijam.Pagewbijam(url) addon.endOfDir() elif mode == "Browse_Titles": hostwbijam.Browse_Titles() addon.endOfDir() elif mode == "Browse_Seasons": hostwbijam.Browse_Seasons() addon.endOfDir() elif mode == "List_Episodes": hostwbijam.List_Episodes() addon.endOfDir() elif mode == "List_Links": hostwbijam.List_Links() else: return
def Wbijam(mode, url): from hosts import hostwbijam if mode == "Pagewbijam": url = params['url'] hostwbijam.Pagewbijam(url) xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "Browse_Titles": hostwbijam.Browse_Titles() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "Browse_Seasons": hostwbijam.Browse_Seasons() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "List_Episodes": hostwbijam.List_Episodes() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "List_Links": hostwbijam.List_Links() else: return
def mode_check(mode='', url=''): if setting('download.opt') == 'true': PathCheck() if (mode == 'SectionMenu'): MainMenu() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif (mode == '') or (mode == None) or (mode == 'MainMenu'): MainMenu() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == 'Settings': my_addon.openSettings() xbmc.executebuiltin('XBMC.Container.Refresh()') # WBIJAM.PL elif (mode == 'Pagewbijam'): Wbijam(mode=mode, url=url) elif (mode == 'Browse_Titles'): Wbijam(mode, url) elif (mode == 'Browse_Seasons'): Wbijam(mode, url) elif (mode == 'List_Episodes'): Wbijam(mode, url) elif (mode == 'List_Links'): Wbijam(mode, url) # ANIME-ODCINKI elif (mode == 'AnimeOdcinki'): AnimeOdcinki(mode=mode, url=url) elif (mode == 'AOAlfabetycznie'): AnimeOdcinki(mode, url) elif (mode == 'AOListTitles'): AnimeOdcinki(mode, url) elif (mode == 'AOSearch'): AnimeOdcinki(mode, url) elif (mode == 'AOGatunki'): AnimeOdcinki(mode, url) elif (mode == 'AOListEpisodes'): AnimeOdcinki(mode, url) elif (mode == 'AOListLinks'): AnimeOdcinki(mode, url) # ANIME-SHINDEN elif (mode == 'Shinden'): AnimeShinden(mode=mode, url=url) elif (mode == 'SHAlfabetycznie'): AnimeShinden(mode, url) elif (mode == 'SHListTitles'): AnimeShinden(mode, url) elif (mode == 'SHSearch'): AnimeShinden(mode, url) elif (mode == 'SHGatunki'): AnimeShinden(mode, url) elif (mode == 'SHListEpisodes'): AnimeShinden(mode, url) elif (mode == 'SHListLinks'): AnimeShinden(mode, url) elif (mode == 'SHLogowanie'): AnimeShinden(mode, url) # STREFA-DB elif (mode == 'Dragonball'): DragonBall(mode=mode, url=url) elif (mode == 'DBListTitles'): DragonBall(mode=mode, url=url) elif (mode == 'DBListLinks'): DragonBall(mode=mode, url=url) # OTHER elif (mode == 'delete_table'): from resources.libs.scraper import delete_table delete_table()
def AnimeShinden(mode, url): from hosts import hostanimeshinden if mode == "Shinden": hostanimeshinden.PageAnimeShinden() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "SHAlfabetycznie": hostanimeshinden.Alfabetyczna() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "SHListTitles": hostanimeshinden.ListTitles() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "SHSearch": hostanimeshinden.Search() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "SHGatunki": hostanimeshinden.Gatunki() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "SHListEpisodes": hostanimeshinden.ListEpisodes() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "SHListLinks": hostanimeshinden.ListLinks() elif mode == "SHLogowanie": hostanimeshinden.Logowanie() else: return
def AnimeOdcinki(mode, url): from hosts import hostanimeodcinki if mode == "AnimeOdcinki": url = params['url'] hostanimeodcinki.PageAnimeOdcinki(url) xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "AOAlfabetycznie": url = params['url'] hostanimeodcinki.Alfabetyczna(url) xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "AOListTitles": hostanimeodcinki.ListTitles() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "AOSearch": hostanimeodcinki.Search() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "AOGatunki": hostanimeodcinki.Gatunki() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "AOListEpisodes": hostanimeodcinki.ListEpisodes() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == "AOListLinks": hostanimeodcinki.ListLinks() else: return
def mode_check(mode='', url=''): if (mode == 'SectionMenu'): MainMenu() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif (mode == '') or (mode == None) or (mode == 'MainMenu'): MainMenu() xbmcplugin.setContent(int(sys.argv[1]), 'movies') addon.endOfDir() elif mode == 'Settings': my_addon.openSettings() xbmc.executebuiltin('XBMC.Container.Refresh()') # elif (mode == 'SubMenu'): # SubMenu() # elif (mode == 'SubSubMenu'): # SubSubMenu() # WBIJAM.PL elif (mode == 'Pagewbijam'): Wbijam(mode=mode, url=url) elif (mode == 'Browse_Titles'): Wbijam(mode, url) elif (mode == 'Browse_Seasons'): Wbijam(mode, url) elif (mode == 'List_Episodes'): Wbijam(mode, url) elif (mode == 'List_Links'): Wbijam(mode, url) # ANIME-ODCINKI elif (mode == 'AnimeOdcinki'): AnimeOdcinki(mode=mode, url=url) elif (mode == 'AOAlfabetycznie'): AnimeOdcinki(mode, url) elif (mode == 'AOListTitles'): AnimeOdcinki(mode, url) elif (mode == 'AOSearch'): AnimeOdcinki(mode, url) elif (mode == 'AOGatunki'): AnimeOdcinki(mode, url) elif (mode == 'AOListEpisodes'): AnimeOdcinki(mode, url) elif (mode == 'AOListLinks'): AnimeOdcinki(mode, url) # ANIME-SHINDEN elif (mode == 'Shinden'): AnimeShinden(mode=mode, url=url) elif (mode == 'SHAlfabetycznie'): AnimeShinden(mode, url) elif (mode == 'SHListTitles'): AnimeShinden(mode, url) elif (mode == 'SHSearch'): AnimeShinden(mode, url) elif (mode == 'SHGatunki'): AnimeShinden(mode, url) elif (mode == 'SHListEpisodes'): AnimeShinden(mode, url) elif (mode == 'SHListLinks'): AnimeShinden(mode, url) elif (mode == 'SHLogowanie'): AnimeShinden(mode, url)
def AnimeShinden(mode, url): from hosts import hostanimeshinden if mode == "Shinden": hostanimeshinden.PageAnimeShinden() addon.endOfDir() elif mode == "SHAlfabetycznie": hostanimeshinden.Alfabetyczna() addon.endOfDir() elif mode == "SHListTitles": hostanimeshinden.ListTitles() addon.endOfDir() elif mode == "SHSearch": hostanimeshinden.Search() addon.endOfDir() elif mode == "SHGatunki": hostanimeshinden.Gatunki() addon.endOfDir() elif mode == "SHListEpisodes": hostanimeshinden.ListEpisodes() addon.endOfDir() elif mode == "SHListLinks": hostanimeshinden.ListLinks() elif mode == "SHLogowanie": hostanimeshinden.Logowanie() else: return
def AnimeOdcinki(mode, url): from hosts import hostanimeodcinki if mode == "AnimeOdcinki": url = params['url'] hostanimeodcinki.PageAnimeOdcinki(url) addon.endOfDir() elif mode == "AOAlfabetycznie": url = params['url'] hostanimeodcinki.Alfabetyczna(url) addon.endOfDir() elif mode == "AOListTitles": hostanimeodcinki.ListTitles() addon.endOfDir() elif mode == "AOSearch": hostanimeodcinki.Search() addon.endOfDir() elif mode == "AOGatunki": hostanimeodcinki.Gatunki() addon.endOfDir() elif mode == "AOListEpisodes": hostanimeodcinki.ListEpisodes() addon.endOfDir() elif mode == "AOListLinks": hostanimeodcinki.ListLinks() else: return