mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
bugfix
This commit is contained in:
parent
00000d9017
commit
00000d9e98
1 changed files with 5 additions and 5 deletions
|
|
@ -42,15 +42,15 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
end_dt = now.delta(minutes=30)
|
||||
|
||||
for info in api_data.get("days", []):
|
||||
event_dt = Time.from_str(info["day_et"], timezone="ET")
|
||||
|
||||
if not start_dt <= event_dt <= end_dt:
|
||||
continue
|
||||
|
||||
for event in info["items"]:
|
||||
if (event_league := event["league"]) == "channel tv":
|
||||
continue
|
||||
|
||||
event_dt = Time.from_str(event["when_et"], timezone="ET")
|
||||
|
||||
if not start_dt <= event_dt <= end_dt:
|
||||
continue
|
||||
|
||||
sport = fix_league(event_league)
|
||||
|
||||
event_name = event["title"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue