From 1818994dedb09f312050683fd8f488d2db44ef5d Mon Sep 17 00:00:00 2001 From: ilmich Date: Fri, 28 Jun 2024 17:38:53 +0200 Subject: [PATCH] altadefinizione: fix for not working stream --- channels/altadefinizione.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/channels/altadefinizione.py b/channels/altadefinizione.py index 005754f6..de82df99 100644 --- a/channels/altadefinizione.py +++ b/channels/altadefinizione.py @@ -115,10 +115,8 @@ def episodios(item): itemlist = [] for it in support.match(data, patron=[r'div class=\"single-season.*?(?Pseason_[0-9]+).*?>Stagione:\s(?P[0-9]+).*?(\s-\s(?P[a-zA-z]+?))?<']).matches: - logger.debug(it) block = support.match(data, patron = r'div id=\"'+ it[0] +'\".*?[^\"]+).*?img\" src=\"(?P[^\"]+).*?title\">(?P[0-9]+)\.\s+(?P.*?)</span>']).matches: - logger.debug(ep) infoLabels = dict() infoLabels['tvshowtitle'] = support.cleantitle(item.fulltitle) #infoLabels['season'] = int(it[1]) @@ -154,7 +152,8 @@ def findvideos(item): if item.contentType == 'movie': video_url = support.match(item, patron=[r'<div class="video-wrapper">.*?<iframe src=\"(https://.*?)\"', r'window.open\(\'([^\']+).*?_blank']).match - + if (video_url == ''): + return [] 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)