From e78e0006b0d8975f3f10f166a98b0b37edd2930d Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 2 Dec 2022 10:17:51 +0100 Subject: [PATCH] Fix Ricerca in Altadefinizione --- channels/altadefinizione.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channels/altadefinizione.py b/channels/altadefinizione.py index d91d4624..029d976d 100644 --- a/channels/altadefinizione.py +++ b/channels/altadefinizione.py @@ -51,6 +51,7 @@ def genres(item): def search(item, text): logger.debug(text) item.url = "{}/search/{}/feed/rss2/".format(host, text) + # item.url = "{}/s={}".format(host, text) item.args = 'search' try: @@ -70,7 +71,7 @@ def peliculas(item): action = 'check' patron = r'src="(?Phttp[^"]+)(?:[^>]+>){4}\s*]+>\s*(?P[^\[\(\<]+)(?:\[(?P<quality>[^\]]+)\])?\s*(?:\((?P<lang>[a-zA-z-]+)\))?\s*(?:\((?P<year>\d+)\))?\s*</a>\s*</h2>' if item.args == 'search': - patron = r'<title>(?P<title>[^\[\(\<]+)(?:\[(?P<quality>[^\]]+)\])?\s*(?:\((?P<lang>[a-zA-z-]+)\))?\s*(?:\((?P<year>\d+)\))?\s*[^>]+>\s*<link>(?P<url>[^<]+)' + patron = r'<item>\s*<title>(?P<title>[^\[\(\<]+)(?:\[(?P<quality>[^\]]+)\])?\s*(?:\((?P<lang>[a-zA-z-]+)\))?\s*(?:\((?P<year>\d+)\))?\s*[^>]+>\s*<link>(?P<url>[^<]+)' patronNext = r'href="([^"]+)[^>]+>Successivo' return locals()