From 5a89b60ce8e6c7f6332b85a427c8831c5517e2f0 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 22 Oct 2021 19:14:16 +0200 Subject: [PATCH] Fix Animeforce --- channels/animeforce.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/channels/animeforce.py b/channels/animeforce.py index f2dcf69c..2b227ebf 100644 --- a/channels/animeforce.py +++ b/channels/animeforce.py @@ -11,7 +11,7 @@ headers = [['Referer', host]] @support.menu def mainlist(item): - anime = ['/lista-anime/', + anime = ['/anime', ('In Corso',['/anime/anime-status/in-corso/', 'peliculas', 'status']), ('Completi',['/anime/anime-status/completo/', 'peliculas', 'status']), ('Genere',['/anime', 'submenu', 'genre']), @@ -74,19 +74,22 @@ def search(item, text): def peliculas(item): search = item.search anime = True + # debug = True if 'movie' in item.url: action = 'findvideos' else: action = 'check' - if not item.args: - pagination = '' - patron = r'[^"]+)"\s*title="(?P[^"]+)">' - else: - patron = r'<a href="(?P<url>[^"]+)"[^>]+>\s*<img src="(?P<thumb>[^"]+)" alt="(?P<title>.*?)(?: Sub| sub| SUB|")' + # if not item.args: + # pagination = '' + # patron = r'<a\s*href="(?P<url>[^"]+)"\s*title="(?P<title>[^"]+)">' + # else: + patron = r'<a href="(?P<url>[^"]+)"[^>]+>\s*<img src="(?P<thumb>[^"]+)" alt="(?P<title>.*?)(?: Sub| sub| SUB|")' if item.args == 'newest': item.action = 'findvideos' + patronNext = '<li class="page-item disabled">(?:[^>]+>){4}<a class="page-link" href="([^"]+)' + def itemHook(item): if 'sub-ita' in item.url: if item.args != 'newest': item.title = item.title + support.typo('Sub-ITA','_ [] color kod')