From 00000d9d0f5158b685217324d580067d4f16f3da Mon Sep 17 00:00:00 2001 From: doms9 <96013514+doms9@users.noreply.github.com> Date: Tue, 27 Jan 2026 16:34:41 -0500 Subject: [PATCH] e --- M3U8/scrapers/livetvsx.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/M3U8/scrapers/livetvsx.py b/M3U8/scrapers/livetvsx.py index e6f6a200..4cd14243 100644 --- a/M3U8/scrapers/livetvsx.py +++ b/M3U8/scrapers/livetvsx.py @@ -160,8 +160,8 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]: live = [] - start_ts = now.delta(minutes=-30).timestamp() - end_ts = now.delta(minutes=30).timestamp() + start_ts = now.delta(hours=-1).timestamp() + end_ts = now.delta(minutes=5).timestamp() for k, v in events.items(): if k in cached_keys: @@ -210,10 +210,11 @@ async def scrape(browser: Browser) -> None: log=log, ) - sport, event, ts = ( + sport, event, ts, link = ( ev["sport"], ev["event"], ev["timestamp"], + ev["link"], ) key = f"[{sport}] {event} ({TAG})" @@ -226,6 +227,7 @@ async def scrape(browser: Browser) -> None: "base": "https://livetv.sx/enx/", "timestamp": ts, "id": tvg_id or "Live.Event.us", + "link": link, } cached_urls[key] = entry