add ovogoal.py
This commit is contained in:
doms9 2026-02-13 16:16:35 -05:00
parent 7aeec4363c
commit 00000d9959
4 changed files with 194 additions and 22 deletions

View file

@ -30,8 +30,6 @@ SPORT_ENDPOINTS = [
async def process_event(url: str, url_num: int) -> tuple[str | None, str | None]:
valid_m3u8 = re.compile(r'(var|const)\s+(\w+)\s*=\s*"([^"]*)"', re.I)
nones = None, None
if not (html_data := await network.request(url, log=log)):
@ -54,6 +52,8 @@ async def process_event(url: str, url_num: int) -> tuple[str | None, str | None]
log.warning(f"URL {url_num}) Failed to load iframe source.")
return nones
valid_m3u8 = re.compile(r'(var|const)\s+(\w+)\s*=\s*"([^"]*)"', re.I)
if not (match := valid_m3u8.search(iframe_src_data.text)):
log.warning(f"URL {url_num}) No Clappr source found.")
return nones