increase the timeout value

This commit is contained in:
harry 2024-04-05 22:27:56 +08:00
parent dbe87c5551
commit 0d3b7b7c5c

View File

@ -100,7 +100,7 @@ def save_video(video_url: str, save_dir: str = "") -> str:
# if video does not exist, download it
proxies = config.pexels.get("proxies", None)
with open(video_path, "wb") as f:
f.write(requests.get(video_url, proxies=proxies, verify=False, timeout=(10, 180)).content)
f.write(requests.get(video_url, proxies=proxies, verify=False, timeout=(60, 240)).content)
return video_path