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
|
|
@ -95,6 +95,7 @@ async def get_events(
|
|||
events = []
|
||||
|
||||
start_dt = now.delta(minutes=-30)
|
||||
end_dt = now.delta(minutes=5)
|
||||
|
||||
for stream_group in api_data:
|
||||
event_ts = stream_group.get("ts")
|
||||
|
|
@ -108,7 +109,7 @@ async def get_events(
|
|||
|
||||
event_dt = Time.from_ts(event_ts)
|
||||
|
||||
if not start_dt <= event_dt:
|
||||
if not start_dt <= event_dt <= end_dt:
|
||||
continue
|
||||
|
||||
event = get_event(t1, t2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue