From 61b50ec301cca9300ea316a259e4391bdbd7c25f Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 21 Jan 2022 18:24:28 +0100 Subject: [PATCH] Fix Altadefinizione --- channels/altadefinizione.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channels/altadefinizione.py b/channels/altadefinizione.py index 1f8d8652..133d9db9 100644 --- a/channels/altadefinizione.py +++ b/channels/altadefinizione.py @@ -55,9 +55,10 @@ def search(item, text): @support.scrape def peliculas(item): + n = '22' if '/?s=' in item.url else '8' item.contentType = "undefined" action = 'check' - patron = r'src="(?Phttp[^"]+)(?:[^>]+>){6,12}\s*]+>\s*(?P[^\[\(\<]+)(?:\[(?P<quality>[^\]]+)\])?\s*(?:\((?P<lang>[a-zA-z-]+)\))?\s*(?:\((?P<year>\d+)\))?\s*</a>\s*</h2>' + patron = r'data-src="(?P<thumb>http[^"]+)(?:[^>]+>){' + n + r'}\s*<a href="(?P<url>[^"]+)[^>]+>\s*(?P<title>[^\[\(\<]+)(?:\[(?P<quality>[^\]]+)\])?\s*(?:\((?P<lang>[a-zA-z-]+)\))?\s*(?:\((?P<year>\d+)\))?\s*</a>\s*</h2>' patronNext = r'href="([^"]+)[^>]+>ยป' return locals()