update M3U8

This commit is contained in:
GitHub Actions Bot 2025-11-27 08:02:25 -05:00
parent 7bb23b897e
commit 714a967226
9 changed files with 445 additions and 1965 deletions

View file

@ -42,7 +42,8 @@ async def process_event(
async def get_events(
client: httpx.AsyncClient, cached_hrefs: set[str]
client: httpx.AsyncClient,
cached_hrefs: set[str],
) -> list[dict[str, str]]:
try:
r = await client.get(BASE_URL)

View file

@ -101,7 +101,6 @@ async def get_events(
client: httpx.AsyncClient,
cached_keys: set[str],
) -> list[dict[str, str]]:
now = Time.clean(Time.now())
if not (events := HTML_CACHE.load()):

View file

@ -22,6 +22,7 @@ async def get_html(
url: str,
date: str,
) -> bytes:
try:
r = await client.get(url, params={"date": date})
r.raise_for_status()

View file

@ -41,6 +41,7 @@ async def get_events(
url: str,
cached_keys: set[str],
) -> list[dict[str, str]]:
try:
r = await client.get(url)
r.raise_for_status()

View file

@ -31,7 +31,8 @@ def fix_sport(s: str) -> str:
async def refresh_api_cache(
client: httpx.AsyncClient, url: str
client: httpx.AsyncClient,
url: str,
) -> list[dict[str, Any]]:
log.info("Refreshing API cache")

View file

@ -81,6 +81,7 @@ async def process_event(
url_num: int,
context: BrowserContext,
) -> str | None:
page = await context.new_page()
captured: list[str] = []