Example #1
0
def SEARCH_ALT(payload, params):
    name = utils.remove_flavor_from_name(payload)
    title = AniListBrowser().get_title(name)
    search_res = GogoAnimeBrowser().search_site(title)
    if not search_res:
        romaji_title = AniListBrowser().get_romaji_title(name)
        search_res = GogoAnimeBrowser().search_site(romaji_title)

    return control.draw_items(search_res)
Example #2
0
    (control.lang(30003), "latest", ''),
    (control.lang(30004), "latest_dub", ''),
    (control.lang(30005), "anilist_trending", ''),
    (control.lang(30006), "anilist_popular", ''),
    (control.lang(30007), "anilist_upcoming", ''),
    (control.lang(30008), 'anilist_all_time_popular', ''),
    (control.lang(30009), "anilist_genres", ''),
    (control.lang(30010), "search_history", ''),
    (control.lang(30011), "tools", ''),
]

_TITLE_LANG = control.getSetting("titlelanguage")

_BROWSER = KaitoBrowser()

_ANILIST_BROWSER = AniListBrowser(_TITLE_LANG)


def _add_last_watched():
    anilist_id = control.getSetting("addon.last_watched")
    if not anilist_id:
        return

    try:
        last_watched = ast.literal_eval(
            database.get_show(anilist_id)['kodi_meta'])
    except:
        return

    MENU_ITEMS.insert(
        0, ("%s[I]%s[/I]" % (control.lang(30000), last_watched['name']),
def ANILIST_GENRES_PAGES(payload, params):
    genres, tags, page = payload.split("/")[-3:]
    return control.draw_items(AniListBrowser().get_genres_page(
        genres, tags, int(page)))
def ANILIST_GENRES(payload, params):
    return control.draw_items(AniListBrowser().get_genres(genre_dialog))
def ANICHART_AIRING_PAGES(payload, params):
    return control.draw_items(AniListBrowser().get_airing(int(payload)))
Example #6
0
def ANICHART_AIRING(payload, params):
    return control.draw_items(AniListBrowser().get_airing(), draw_cm=draw_cm)
Example #7
0
def ANICHART_POPULAR_PAGES(payload, params):
    return control.draw_items(AniListBrowser().get_popular(int(payload)))