From 3f9ecc60eb46378e16abec612b2f6c7bc334e762 Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Mon, 14 Mar 2022 20:46:32 +0100 Subject: [PATCH] 1337x -> fix doppio pulsante "successivo" --- channels/1337x.py | 3 ++- channels/altadefinizione01.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/channels/1337x.py b/channels/1337x.py index ce1aabe0..fbfde1ab 100644 --- a/channels/1337x.py +++ b/channels/1337x.py @@ -114,6 +114,7 @@ def peliculas(item): patron = r']+>){4}\s*]+>(?P[^<]+)' if (item.args == 'search' or item.contentType != 'movie') and inspect.stack()[4][3] not in ['get_channel_results']: + patronNext = None def itemlistHook(itemlist): lastUrl = support.match(data, patron=r'href="([^"]+)">Last').match if lastUrl: @@ -127,7 +128,7 @@ def peliculas(item): @support.scrape def seasons(item): - item.contentType == 'season' + item.contentType = 'season' action = 'episodios' patron = r'<li>\s*<a href="(?P<url>[^"]+)[^>]+>\s*<img alt="[^"]*"\ssrc="(?P<thumb>[^"]+)(?:([^>]+)>){2}\s*(?P<title>\w+ (?P<season>\d+))' return locals() diff --git a/channels/altadefinizione01.py b/channels/altadefinizione01.py index 191e3062..53ccc27f 100644 --- a/channels/altadefinizione01.py +++ b/channels/altadefinizione01.py @@ -57,7 +57,7 @@ def peliculas(item): patronBlock = r'</script> <div class="boxgrid caption">(?P<block>.*)<div id="right_bar">' elif item.args == 'update': patronBlock = r'<div class="widget-title">Ultimi Film Aggiunti/Aggiornati</div>(?P<block>.*?)<div id="alt_menu">' - patron = r'style="background-image:url\((?P<thumb>[^\)]+).+?<p class="h4">(?P<title>.*?)</p>[^>]+> [^>]+> [^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+> [^>]+> [^>]+>[^>]+>(?P<year>\d{4})[^>]+>[^>]+> [^>]+>[^>]+>(?P<duration>\d+|N/A).+?>.*?(?:>Film (?P<lang>Sub ITA)</a></p> )?<p>(?P<plot>[^<]+)<.*?href="(?P<url>[^"]+)' + patron = r'style="background-image:url\((?P<thumb>[^\)]+).+?<p class="h4">(?P<title>.*?)</p>[^>]+> [^>]+> [^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+> [^>]+> [^>]+>[^>]+>(?P<year>\d{4})[^>]+>[^>]+> [^>]+>[^>]+>(?P<duration>\d+|N/A)?.+?>.*?(?:>Film (?P<lang>Sub ITA)</a></p> )?<p>(?P<plot>[^<]+)<.*?href="(?P<url>[^"]+)' patronNext = '' # non ha nessuna paginazione elif item.args == 'orderalf': patron = r'<td class="mlnh-thumb"><a href="(?P<url>[^"]+)".*?src="(?P<thumb>[^"]+)"' \