mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-07-19 00:20:00 +00:00
Update downloader.py
This commit is contained in:
parent
ae5cc34e86
commit
58bdadd92c
@ -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)
|
||||
|
||||
try:
|
||||
with httpx.Client() as client:
|
||||
with httpx.Client(verify=REQUEST_VERIFY) as client:
|
||||
with client.stream("GET", url, headers=headers) as response:
|
||||
response.raise_for_status()
|
||||
total = int(response.headers.get('content-length', 0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user