This commit is contained in:
doms9 2025-09-01 19:12:49 -04:00
parent 00000d9172
commit 00000d9531
4 changed files with 219 additions and 10 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"TVPass: Collected {len(urls)} live events from cache")
log.info(f"Collected {len(urls)} events 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)} live events")
log.info(f"Cached {len(urls)} events")