e
This commit is contained in:
parent
00000d9301
commit
00000d996a
2 changed files with 4 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue