mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
use wider window for embedhd.py use different mirror for totalsportek.py
This commit is contained in:
parent
f336fff671
commit
00000d9a79
2 changed files with 5 additions and 11 deletions
|
|
@ -38,9 +38,6 @@ 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", []):
|
||||
for event in info["items"]:
|
||||
if (event_league := event["league"]) == "channel tv":
|
||||
|
|
@ -48,7 +45,7 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
|
||||
event_dt = Time.from_str(event["when_et"], timezone="ET")
|
||||
|
||||
if not start_dt <= event_dt <= end_dt:
|
||||
if now.date() != event_dt.date():
|
||||
continue
|
||||
|
||||
sport = fix_league(event_league)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue