- edit scraping for webcast.py
This commit is contained in:
doms9 2026-03-16 19:58:56 -04:00
parent 39209d0284
commit 00000d9035

View file

@ -54,7 +54,7 @@ async def process_event(url: str, url_num: int) -> str | None:
return 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)): if not (match := pattern.search(iframe_src_data.text)):
log.warning(f"URL {url_num}) No Clappr source found.") 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") 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]]: async def get_events(cached_keys: list[str]) -> list[dict[str, str]]: