def build_anime_list(animes): animes_list = [] for anime in animes: image = "https://punchsub.zlx.com.br/imagens/projetos/animes/%s.jpg" % ( anime[0]) animes_list.append({ 'label': anime[1], 'url': plugin.get_url(action='view', name=anime[1], id=anime[0]), 'art': { 'thumb': image, 'icon': image, 'poster': image, 'fanart': image, }, }) return Plugin.create_listing(animes_list, content="tvshows", view_mode=500)
def season(): result = anilist.get_animes({}) animes = result["data"]["Page"]["media"] animes_list = [] for anime in animes: image = anime["coverImage"]["large"] title = anime["title"]["romaji"] animes_list.append({ 'label': title, 'url': plugin.get_url(action='search', title=title), 'art': { 'thumb': image, 'icon': image, 'poster': image, 'fanart': image, 'banner': anime['bannerImage'] }, 'info': { 'video': { 'plot': anime['description'] } } }) return Plugin.create_listing(animes_list, content="tvshows", view_mode=50)