(control.lang(30021), "clear_cache", ''), (control.lang(30022), "clear_torrent_cache", ''), (control.lang(30023), "clear_history", ''), (control.lang(30024), "wipe_addon_data", ''), ] return control.draw_items( [ utils.allocate_item(name, url, True, image) for name, url, image in TOOLS_ITEMS ], contentType=control.getSetting("contenttype.menu"), ) @route('') def LIST_MENU(payload, params): return control.draw_items( [ utils.allocate_item(name, url, True, image) for name, url, image in MENU_ITEMS ], contentType=control.getSetting("contenttype.menu"), ) set_browser(_BROWSER) _add_last_watched() add_watchlist(MENU_ITEMS) router_process(control.get_plugin_url(), control.get_plugin_params())
def GOGO_PLAY(payload, params): sources = GogoAnimeBrowser().get_episode_sources(payload) autoplay = True if 'true' in control.getSetting('autoplay') else False s = SourcesList( sorted(sources.items()), autoplay, sortResultsByRes, { 'title': control.lang(30100), 'processing': control.lang(30101), 'choose': control.lang(30102), 'notfound': control.lang(30103), }) control.play_source(s.get_video_link()) @route('') def LIST_MENU(payload, params): return control.draw_items( [ utils.allocate_item(name, url, True, image) for name, url, image in MENU_ITEMS ], contentType=control.getSetting("contenttype.menu"), ) set_browser(_BROWSER, draw_cm) add_watchlist(MENU_ITEMS) _add_last_watched() router_process(control.get_plugin_url(), control.get_plugin_params())