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

@ -86,6 +86,8 @@ async def scrape(client: httpx.AsyncClient) -> None:
log.info(f"Processing {len(events)} new URL(s)")
now = Time.now().timestamp()
for i, ev in enumerate(events, start=1):
url = await network.safe_process(
lambda: process_event(client, url=ev["link"], url_num=i),
@ -105,7 +107,7 @@ async def scrape(client: httpx.AsyncClient) -> None:
"url": url,
"logo": logo,
"base": BASE_URL,
"timestamp": Time.now().timestamp(),
"timestamp": now,
"id": tvg_id or "Live.Event.us",
}