mirror of
https://github.com/doms9/iptv.git
synced 2026-04-21 19:46:59 +02:00
e
This commit is contained in:
parent
7a5724f165
commit
00000d9aa1
5 changed files with 13 additions and 11 deletions
|
|
@ -67,7 +67,7 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
if not (api_req := await network.request(API_URL, log=log)):
|
||||
return events
|
||||
|
||||
elif not (api_data := api_req.json()):
|
||||
elif not (api_data := api_req.json()) or api_data.get("error"):
|
||||
return events
|
||||
|
||||
for event in api_data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue