mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
This commit is contained in:
parent
8264afeefd
commit
00000d949b
3 changed files with 6 additions and 8 deletions
|
|
@ -94,8 +94,7 @@ async def get_events(
|
|||
|
||||
events = []
|
||||
|
||||
start_dt = now.delta(hours=-1)
|
||||
end_dt = now.delta(minutes=10)
|
||||
start_dt = now.delta(minutes=-30)
|
||||
|
||||
for stream_group in api_data:
|
||||
event_ts = stream_group.get("ts")
|
||||
|
|
@ -109,7 +108,7 @@ async def get_events(
|
|||
|
||||
event_dt = Time.from_ts(event_ts)
|
||||
|
||||
if not start_dt <= event_dt <= end_dt:
|
||||
if not start_dt <= event_dt:
|
||||
continue
|
||||
|
||||
event = get_event(t1, t2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue