This commit is contained in:
doms9 2025-09-03 00:00:22 -04:00
parent a02d30459a
commit 00000d9855
5 changed files with 98 additions and 42 deletions

View file

@ -51,7 +51,7 @@ async def fetch_m3u8(client: httpx.AsyncClient) -> list[str] | None:
async def main(client: httpx.AsyncClient) -> None:
if cached := load_cache():
urls.update(cached)
log.info(f"Collected {len(urls)} events from cache")
log.info(f"Collected {len(urls)} event(s) from cache")
return
log.info(f'Scraping from "{base_url}"')
@ -87,4 +87,4 @@ async def main(client: httpx.AsyncClient) -> None:
if urls:
base_file.write_text(json.dumps(urls, indent=2), encoding="utf-8")
log.info(f"Cached {len(urls)} events")
log.info(f"Cached {len(urls)} event(s)")