This commit is contained in:
doms9 2025-09-13 11:37:57 -04:00
parent f1643110b2
commit 00000d99a3
2 changed files with 9 additions and 15 deletions

View file

@ -103,9 +103,10 @@ async def process_event(
og_title.attributes.get("content", "").split(" start on")[0].strip()
)
if src := soup.css_first("iframe").attributes.get("src", ""):
log.info(f"URL {url_num}) Captured M3U8")
return match_name, unquote(src).split("link=")[-1]
if ifr := soup.css_first("iframe"):
if src := ifr.attributes.get("src", ""):
log.info(f"URL {url_num}) Captured M3U8")
return match_name, unquote(src).split("link=")[-1]
log.info(f"URL {url_num}) No M3U8 found")
return "", ""