(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())
episode) 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), }) __set_last_watched(anime_url, is_dubbed, name, image) control.play_source(s.get_video_link(), watchlist_update(episode, kitsu_id), on_stopped) @route('') def LIST_MENU(payload, params): return control.draw_items( [ utils.allocate_item(name, url, True, image) for name, url, image in MENU_ITEMS ], control.getSetting("menucontent.type"), ) add_watchlist(_BROWSER, MENU_ITEMS) _add_last_watched() router_process(control.get_plugin_url(), control.get_plugin_params())