diff --git a/M3U8/scrapers/embedhd.py b/M3U8/scrapers/embedhd.py index 8bef50b..c959f38 100644 --- a/M3U8/scrapers/embedhd.py +++ b/M3U8/scrapers/embedhd.py @@ -38,10 +38,13 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]: events = [] + start_dt = now.delta(minutes=-30) + end_dt = now.delta(minutes=30) + for info in api_data.get("days", []): event_dt = Time.from_str(info["day_et"], timezone="ET") - if now.date() != event_dt.date(): + if not start_dt <= event_dt <= end_dt: continue for event in info["items"]: