This commit is contained in:
doms9 2025-10-01 18:34:18 -04:00
parent 760aeb9174
commit 00000d9799
5 changed files with 19 additions and 14 deletions

View file

@ -33,6 +33,8 @@ async def scrape(client: httpx.AsyncClient) -> None:
log.info(f'Scraping from "{BASE_URL}"')
now = Time.now().timestamp()
if not (data := await fetch_m3u8(client)):
log.warning("No M3U8 data received")
return
@ -62,7 +64,7 @@ async def scrape(client: httpx.AsyncClient) -> None:
"logo": logo,
"id": tvg_id or "Live.Event.us",
"base": "https://tvpass.org",
"timestamp": Time.now().timestamp(),
"timestamp": now,
}
urls[key] = entry