diff --git a/Src/Lib/Hls/download_mp4.py b/Src/Lib/Hls/download_mp4.py index a60c4ad..6a8d3b6 100644 --- a/Src/Lib/Hls/download_mp4.py +++ b/Src/Lib/Hls/download_mp4.py @@ -36,7 +36,7 @@ def MP4_downloader(url: str, path: str, referer: str, add_desc: str): headers = {'Referer': referer, 'user-agent': get_headers()} with httpx.Client(verify=REQUEST_VERIFY, timeout=REQUEST_TIMEOUT) as client: - with client.stream("GET", url, headers=headers) as response: + with client.stream("GET", url, headers=headers, timeout=99) as response: total = int(response.headers.get('content-length', 0)) # Create bar format