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 = []
|
live = []
|
||||||
|
|
||||||
start_ts = now.delta(hours=-1).timestamp()
|
start_ts = now.delta(hours=-1).timestamp()
|
||||||
end_ts = now.delta(minutes=5).timestamp()
|
|
||||||
|
|
||||||
for k, v in events.items():
|
for k, v in events.items():
|
||||||
if cached_keys & {k}:
|
if cached_keys & {k}:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not start_ts <= v["event_ts"] <= end_ts:
|
if not start_ts <= v["event_ts"]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
live.append({**v})
|
live.append({**v})
|
||||||
|
|
|
||||||
|
|
@ -82,8 +82,8 @@ async def get_events(
|
||||||
|
|
||||||
streams: list[dict[str, str]] = ev["streams"]
|
streams: list[dict[str, str]] = ev["streams"]
|
||||||
|
|
||||||
for z, stream in enumerate(streams, start=1):
|
for stream in streams:
|
||||||
key = f"[{sport}] {name} {z} ({TAG})"
|
key = f"[{sport}] {name} ({TAG})"
|
||||||
|
|
||||||
if cached_keys & {key}:
|
if cached_keys & {key}:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue