mirror of
https://github.com/doms9/iptv.git
synced 2026-03-06 11:08:25 +01:00
e
This commit is contained in:
parent
cfa9e28055
commit
00000d9a91
2 changed files with 5 additions and 2 deletions
|
|
@ -44,7 +44,10 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
event_info = api_data[sport]
|
||||
|
||||
for event in event_info:
|
||||
t1, t2 = event["awayTeam"], event["homeTeam"]
|
||||
t1, t2 = event.get("awayTeam"), event.get("homeTeam")
|
||||
|
||||
if not (t1 and t2):
|
||||
continue
|
||||
|
||||
name = f"{t1} vs {t2}"
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ async def process_event(
|
|||
|
||||
try:
|
||||
try:
|
||||
async with page.expect_response(strm_handler, timeout=2_500) as strm_resp:
|
||||
async with page.expect_response(strm_handler, timeout=3_250) as strm_resp:
|
||||
resp = await page.goto(
|
||||
url,
|
||||
wait_until="domcontentloaded",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue