diff --git a/.gitignore b/.gitignore index dd7c7c8..5b636fc 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,4 @@ wheels/ # Misc .python-version stuff/ -cached-ca.pem -M3U8/scrapers/caches/*.json +M3U8/scrapers/caches/* diff --git a/M3U8/scrapers/livetvsx.py b/M3U8/scrapers/livetvsx.py index 2c60348..1e970de 100644 --- a/M3U8/scrapers/livetvsx.py +++ b/M3U8/scrapers/livetvsx.py @@ -27,14 +27,14 @@ urls: dict[str, dict[str, str | float]] = {} BASE_URL = "https://cdn.livetv861.me/rss/upcoming_en.xml" -CERT_BUNDL_URLS = [ +CERT_BUNDLE_URLS = [ "https://curl.se/ca/cacert.pem", "https://ssl.com/repo/certs/Cloudflare-TLS-I-E1.pem", "https://ssl.com/repo/certs/SSL.com-TLS-T-ECC-R2.pem", "https://ssl.com/repo/certs/Sectigo-AAA-Root.pem", ] -CERT_FILE = Path(__file__).parent / "utils" / "cached-ca.pem" +CERT_FILE = Path(__file__).parent / "caches" / "cached-cert.pem" CACHE_FILE = Path(__file__).parent / "caches" / "livetvsx.json" @@ -59,7 +59,7 @@ async def write_to_cert( async def refresh_cert_cache(client: httpx.AsyncClient) -> ssl.SSLContext: CERT_FILE.unlink(missing_ok=True) - tasks = [write_to_cert(client, url, CERT_FILE) for url in CERT_BUNDL_URLS] + tasks = [write_to_cert(client, url, CERT_FILE) for url in CERT_BUNDLE_URLS] await asyncio.gather(*tasks)