From 49194f893b8624e8913fa69b3e8d8a8312828f39 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Tue, 3 Sep 2019 11:42:07 +0200 Subject: [PATCH] Fix mancata Lingua in Animeworld --- channels/animeworld.py | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/channels/animeworld.py b/channels/animeworld.py index af589675..d2d5fb0e 100644 --- a/channels/animeworld.py +++ b/channels/animeworld.py @@ -3,8 +3,6 @@ # Canale per animeworld # ---------------------------------------------------------- - - from core import support, jsontools __channel__ = "animeworld" @@ -18,6 +16,7 @@ list_quality = ['default', '480p', '720p', '1080p'] def order(): + # Seleziona l'ordinamento dei risultati return str(support.config.get_setting("order", __channel__)) @@ -70,7 +69,7 @@ def newest(categoria): item.url = host + '/updated' item.args = "updated" return peliculas(item) - # Continua la ricerca in caso di errore + # Continua la ricerca in caso di errore except: import sys for line in sys.exc_info(): @@ -95,32 +94,37 @@ def search(item, texto): @support.scrape def peliculas(item): anime=True + if item.args == 'updated': patron=r'
\s*]+>\s*[^\)]+)\))?"[^>]+>[^>]+>\s*(?:
(?P[^<]+)
)?[^>]+>[^>]+>\s*
[^\d]+(?P\d+)[^<]*
' action='findvideos' else: - if item.args != 'noorder' and not item.url[-1].isdigit(): - item.url += order() - support.log('ORDINE= ', order()) - + if item.args != 'noorder' and not item.url[-1].isdigit(): item.url += order() # usa l'ordinamento di configura canale patron= r'