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})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue