mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
remove dead sites misc. edits
This commit is contained in:
parent
474b3a19fc
commit
00000d92ad
6 changed files with 8 additions and 330 deletions
|
|
@ -142,12 +142,13 @@ async def get_events(
|
|||
live = []
|
||||
|
||||
start_ts = now.delta(minutes=-30).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"]:
|
||||
if not start_ts <= v["event_ts"] <= end_ts:
|
||||
continue
|
||||
|
||||
live.append({**v})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue