Update downloader.py

This commit is contained in:
ciccioxm3 2025-06-26 11:32:55 +02:00 committed by GitHub
parent ae5cc34e86
commit 58bdadd92c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,7 @@ def MP4_downloader(url: str, path: str, referer: str = None, headers_: dict = No
os.makedirs(os.path.dirname(path), exist_ok=True) os.makedirs(os.path.dirname(path), exist_ok=True)
try: try:
with httpx.Client() as client: with httpx.Client(verify=REQUEST_VERIFY) as client:
with client.stream("GET", url, headers=headers) as response: with client.stream("GET", url, headers=headers) as response:
response.raise_for_status() response.raise_for_status()
total = int(response.headers.get('content-length', 0)) total = int(response.headers.get('content-length', 0))