From 00000d9035e58f2b587981a029a6824f80c6013e Mon Sep 17 00:00:00 2001 From: doms9 <96013514+doms9@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:58:56 -0400 Subject: [PATCH] e - edit scraping for webcast.py --- M3U8/scrapers/webcast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/M3U8/scrapers/webcast.py b/M3U8/scrapers/webcast.py index eb30e8af..08a1b0ea 100644 --- a/M3U8/scrapers/webcast.py +++ b/M3U8/scrapers/webcast.py @@ -54,7 +54,7 @@ async def process_event(url: str, url_num: int) -> str | None: return - pattern = re.compile(r"source:\s+(\'|\")(.*)(\'|\")", re.I) + pattern = re.compile(r"(source:|streamUrl\s+=)\s+(\'|\")(.*)(\'|\")", re.I) if not (match := pattern.search(iframe_src_data.text)): log.warning(f"URL {url_num}) No Clappr source found.") @@ -63,7 +63,7 @@ async def process_event(url: str, url_num: int) -> str | None: log.info(f"URL {url_num}) Captured M3U8") - return match[2] + return match[3] async def get_events(cached_keys: list[str]) -> list[dict[str, str]]: