This commit is contained in:
doms9 2026-02-24 17:36:06 -05:00
parent 00000d9476
commit 00000d9069

View file

@ -181,8 +181,6 @@ async def scrape() -> None:
if events: if events:
log.info(f"Processing {len(events)} new URL(s)") log.info(f"Processing {len(events)} new URL(s)")
now = Time.clean(Time.now())
for i, ev in enumerate(events, start=1): for i, ev in enumerate(events, start=1):
handler = partial( handler = partial(
process_event, process_event,
@ -197,7 +195,11 @@ async def scrape() -> None:
log=log, log=log,
) )
sport, event = ev["sport"], ev["event"] sport, event, ts = (
ev["sport"],
ev["event"],
ev["event_ts"],
)
key = f"[{sport}] {event} ({TAG})" key = f"[{sport}] {event} ({TAG})"
@ -207,7 +209,7 @@ async def scrape() -> None:
"url": url, "url": url,
"logo": logo, "logo": logo,
"base": link, "base": link,
"timestamp": now.timestamp(), "timestamp": ts,
"id": tvg_id or "Live.Event.us", "id": tvg_id or "Live.Event.us",
"link": link, "link": link,
} }