add totalsportek.py
This commit is contained in:
doms9 2025-12-24 01:54:02 -05:00
parent 2c856d9e80
commit 00000d9153
3 changed files with 174 additions and 3 deletions

View file

@ -18,8 +18,6 @@ BASE_URL = "https://istreameast.app"
async def process_event(url: str, url_num: int) -> str | None:
pattern = re.compile(r"source:\s*window\.atob\(\s*'([^']+)'\s*\)", re.IGNORECASE)
if not (event_data := await network.request(url, log=log)):
log.info(f"URL {url_num}) Failed to load url.")
@ -42,6 +40,8 @@ async def process_event(url: str, url_num: int) -> str | None:
return
pattern = re.compile(r"source:\s*window\.atob\(\s*'([^']+)'\s*\)", re.IGNORECASE)
if not (match := pattern.search(iframe_src_data.text)):
log.warning(f"URL {url_num}) No Clappr source found.")