mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
bugfix
This commit is contained in:
parent
3710836588
commit
00000d9017
1 changed files with 8 additions and 5 deletions
|
|
@ -64,18 +64,21 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
||||||
if not start_dt <= event_dt <= end_dt:
|
if not start_dt <= event_dt <= end_dt:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
channels: list[str] = [channel["url"] for channel in event["channels"]]
|
if not (channels := event.get("channels")):
|
||||||
|
continue
|
||||||
|
|
||||||
|
event_links: list[str] = [channel["url"] for channel in channels]
|
||||||
|
|
||||||
# if not (
|
# if not (
|
||||||
# link := (
|
# link := (
|
||||||
# channels[0]
|
# event_links[0]
|
||||||
# if len(channels) == 1
|
# if len(event_links) == 1
|
||||||
# else await network.get_base(channels)
|
# else await network.get_base(event_links)
|
||||||
# )
|
# )
|
||||||
# ):
|
# ):
|
||||||
# continue
|
# continue
|
||||||
|
|
||||||
link = channels[0]
|
link = event_links[0]
|
||||||
|
|
||||||
events.append(
|
events.append(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue