From 38808bb5845ad3bfdbc9c3b54e85faf45e13e7b0 Mon Sep 17 00:00:00 2001 From: ilmich Date: Mon, 12 Feb 2024 20:06:43 +0100 Subject: [PATCH] altadefinizione: added saga section (#467) --- channels/altadefinizione.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/channels/altadefinizione.py b/channels/altadefinizione.py index bb539917..d316c878 100644 --- a/channels/altadefinizione.py +++ b/channels/altadefinizione.py @@ -7,7 +7,6 @@ from core import httptools, support from platformcode import config, logger - def findhost(url): host = support.match(url, patron=r']+>.*?)".*?alt="(?P.*?)".*?<a href="(?P<url>.*?)"']).matches: + itemlist.append(item.clone(action='peliculas', thumbnail = it[0].replace(' ','%20'), title = it[1], url= host + it[2])) + + for it in support.match(item, patron=['buttonn button2"><a href="(?P<url>.*?)"><img src="(?P<thumb>.*?)".*?>(?P<title>.*?)(>|<)']).matches: + itemlist.append(item.clone(action='peliculas', thumbnail = it[1].replace(' ','%20'), title = it[2], url = host + it[0])) + + return itemlist @support.scrape def genres(item): @@ -102,5 +113,5 @@ def findvideos(item): itemlist = [item.clone(action="play", url=srv) for srv in support.match(video_url, patron='<div class="megaButton" meta-type="v" meta-link="([^"]+).*?(?=>)>').matches] itemlist = support.server(item,itemlist=itemlist) - + return itemlist