This commit is contained in:
doms9 2025-10-12 00:27:42 -04:00
parent 69cf0b4754
commit 00000d9b81
9 changed files with 30 additions and 8 deletions

View file

@ -36,10 +36,7 @@ SPORT_ENDPOINTS = [
]
async def get_api_data(
client: httpx.AsyncClient,
url: str,
) -> list[dict[str, Any]]:
async def get_api_data(client: httpx.AsyncClient, url: str) -> list[dict[str, Any]]:
try:
r = await client.get(url, timeout=10)
r.raise_for_status()
@ -137,6 +134,7 @@ async def process_event(
await iframe.click("button.vds-play-button")
except TimeoutError:
log.warning("Play button not found inside iframe.")
return
wait_task = asyncio.create_task(got_one.wait())
@ -218,7 +216,7 @@ async def get_events(
{
"sport": sport,
"event": name,
"link": f"https://www.watchfooty.live/en/stream/{match_id}",
"link": urljoin(base_url, f"stream/{match_id}"),
"logo": logo,
"timestamp": event_dt.timestamp(),
}