From a9ff9fab1306a09648d389683bcb389a718274b3 Mon Sep 17 00:00:00 2001 From: Lovi <62809003+Lovi-0@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:24:52 +0200 Subject: [PATCH] DDL increase timeout. --- Src/Lib/Hls/download_mp4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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