From 08da626c15f9a6f4beb34f5395703e797b99684c Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Mon, 28 Oct 2019 19:06:26 +0100 Subject: [PATCH] Fix Animeleggendari --- channels/animeleggendari.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/channels/animeleggendari.py b/channels/animeleggendari.py index b753b3e1..f95ecdff 100644 --- a/channels/animeleggendari.py +++ b/channels/animeleggendari.py @@ -15,7 +15,7 @@ headers = [['User-Agent', 'Mozilla/50.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/ list_servers = ['verystream','openload','rapidvideo','streamango'] list_quality = ['default'] - + @support.menu def mainlist(item): @@ -24,7 +24,7 @@ def mainlist(item): ('ITA', ['/category/anime-ita/', 'peliculas']), ('SUB-ITA', ['/category/anime-sub-ita/', 'peliculas']), ('Conclusi', ['/category/serie-anime-concluse/', 'peliculas']), - ('in Corso', ['/category/serie-anime-in-corso/', 'last_ep']), + ('in Corso', ['/category/serie-anime-in-corso/', 'peliculas']), ('Genere', ['', 'genres']) ] @@ -33,7 +33,7 @@ def mainlist(item): def search(item, texto): support.log(texto) - + item.url = host + "/?s=" + texto try: return peliculas(item) @@ -76,7 +76,8 @@ def peliculas(item): @support.scrape def episodios(item): data = support.match(item, headers=headers)[1] - if 'Lista Episodi' not in data: + if not any(x in data for x in ['Lista Episodi', 'Movie Parte']): + support.log('NOT IN DATA') patron = r'(?:iframe src|str)="(?P[^"]+)"' title = item.title def fullItemlistHook(itemlist): @@ -94,11 +95,15 @@ def episodios(item): url = item.url anime = True patronBlock = r'(?:

|

' - patron = r'(?:]+>)?(?P\d+)' + patron = r'(?:]+>)?(?P\d+)' def itemHook(item): if not item.url: item.url = url - item.title = support.typo('Episodio ', 'bold') + item.title + if 'Movie Parte' in data: + item.title = support.typo(item.fulltitle + ' - Part ','bold') + item.title + item.contentType = 'movie' + else: + item.title = support.typo('Episodio ', 'bold') + item.title return item return locals()