mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
This commit is contained in:
parent
b366541607
commit
00000d939d
2 changed files with 3 additions and 4 deletions
|
|
@ -142,13 +142,12 @@ async def get_events(
|
|||
live = []
|
||||
|
||||
start_ts = now.delta(hours=-1).timestamp()
|
||||
end_ts = now.delta(minutes=5).timestamp()
|
||||
|
||||
for k, v in events.items():
|
||||
if cached_keys & {k}:
|
||||
continue
|
||||
|
||||
if not start_ts <= v["event_ts"] <= end_ts:
|
||||
if not start_ts <= v["event_ts"]:
|
||||
continue
|
||||
|
||||
live.append({**v})
|
||||
|
|
|
|||
|
|
@ -82,8 +82,8 @@ async def get_events(
|
|||
|
||||
streams: list[dict[str, str]] = ev["streams"]
|
||||
|
||||
for z, stream in enumerate(streams, start=1):
|
||||
key = f"[{sport}] {name} {z} ({TAG})"
|
||||
for stream in streams:
|
||||
key = f"[{sport}] {name} ({TAG})"
|
||||
|
||||
if cached_keys & {key}:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue