From 070ee66f5d8dfd91bd8ba44f5e9d4eb8ef33353f Mon Sep 17 00:00:00 2001 From: marco Date: Sun, 13 Sep 2020 21:11:19 +0200 Subject: [PATCH] animeunity fix categorie --- channels/animeunity.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/channels/animeunity.py b/channels/animeunity.py index e2da2421..63582afa 100644 --- a/channels/animeunity.py +++ b/channels/animeunity.py @@ -23,16 +23,16 @@ def mainlist(item): top = [('Ultimi Episodi', ['', 'news'])] menu = [('Anime {bullet bold}',['', 'menu', {}, 'tvshow']), - ('Film {submenu}',['', 'menu', {'type':'Movie'}]), - ('TV {submenu}',['', 'menu', {'type':'TV'}, 'tvshow']), - ('OVA {submenu} {tv}',['', 'menu', ['type','OVA'], 'tvshow']), - ('ONA {submenu} {tv}',['', 'menu', ['type','ONA'], 'tvshow']), - ('Special {submenu} {tv}',['', 'menu', ['type','Special'], 'tvshow'])] + ('Film {submenu}',['', 'menu', {'type': 'Movie'}]), + ('TV {submenu}',['', 'menu', {'type': 'TV'}, 'tvshow']), + ('OVA {submenu} {tv}',['', 'menu', {'type': 'OVA'}, 'tvshow']), + ('ONA {submenu} {tv}',['', 'menu', {'type': 'ONA'}, 'tvshow']), + ('Special {submenu} {tv}',['', 'menu', {'type': 'Special'}, 'tvshow'])] search ='' return locals() def menu(item): - item.action='peliculas' + item.action = 'peliculas' ITA = copy.copy(item.args) ITA['title'] = '(ita)' InCorso = copy.copy(item.args) @@ -52,13 +52,14 @@ def menu(item): def genres(item): support.log() + # support.dbg() itemlist = [] genres = json.loads(support.match(response.text, patron='genres="([^"]+)').match.replace('"','"')) for genre in genres: item.args['genres'] = [genre] - itemlist.append(item.clone(title=support.typo(genre,'bold'), action='peliculas')) + itemlist.append(item.clone(title=support.typo(genre['name'],'bold'), action='peliculas')) return support.thumb(itemlist) def years(item):