|
@@ -114,7 +114,7 @@ def download_video(video_link: str) -> Optional[str]:
|
|
|
file_path = os.path.join(CACHE_DIR, f'{str(uuid.uuid4())}.mp4')
|
|
|
for _ in range(3):
|
|
|
try:
|
|
|
- response = requests.get(url=video_link)
|
|
|
+ response = requests.get(url=video_link, timeout=60)
|
|
|
if response.status_code == 200:
|
|
|
with open(file_path, 'wb') as f:
|
|
|
f.write(response.content)
|