This commit is contained in:
doms9 2025-10-30 15:38:34 -04:00
parent 566f5c2c80
commit 00000d980a
12 changed files with 337 additions and 547 deletions

View file

@ -22,6 +22,7 @@ epg_urls = [
client = httpx.AsyncClient(
timeout=5,
follow_redirects=True,
http2=True,
headers={
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
},
@ -185,3 +186,8 @@ async def main() -> None:
if __name__ == "__main__":
asyncio.run(main())
try:
asyncio.run(client.aclose())
except Exception:
pass