update M3U8

This commit is contained in:
GitHub Actions Bot 2025-11-18 11:02:27 -05:00
parent 335db32721
commit 6eaf99470d
4 changed files with 858 additions and 219 deletions

View file

@ -1,3 +1,4 @@
import random
from functools import partial
from urllib.parse import urljoin
@ -113,6 +114,8 @@ async def scrape(client: httpx.AsyncClient) -> None:
log.info(f"Loaded {cached_count} event(s) from cache")
random.shuffle(MIRRORS)
if not (base_url := await network.get_base(MIRRORS)):
log.warning("No working Streameast mirrors")
CACHE_FILE.write(cached_urls)