Spaces:
Sleeping
Sleeping
Update src/app.py
Browse files- src/app.py +2 -2
src/app.py
CHANGED
|
@@ -87,13 +87,13 @@ def download_video_robust(video_url, output_dir):
|
|
| 87 |
'yt-dlp',
|
| 88 |
'--no-check-certificates',
|
| 89 |
'--geo-bypass',
|
| 90 |
-
'--force-json',
|
| 91 |
'--extract-flat',
|
| 92 |
'--no-warnings',
|
| 93 |
'--output', f'{output_dir}/%(title)s.%(ext)s',
|
| 94 |
-
'--format', 'best[height<=720]',
|
| 95 |
video_url
|
| 96 |
]
|
|
|
|
| 97 |
|
| 98 |
result = subprocess.run(cmd, capture_output=True, text=True, timeout=120)
|
| 99 |
|
|
|
|
| 87 |
'yt-dlp',
|
| 88 |
'--no-check-certificates',
|
| 89 |
'--geo-bypass',
|
|
|
|
| 90 |
'--extract-flat',
|
| 91 |
'--no-warnings',
|
| 92 |
'--output', f'{output_dir}/%(title)s.%(ext)s',
|
| 93 |
+
'--format', 'best[height<=720]',
|
| 94 |
video_url
|
| 95 |
]
|
| 96 |
+
|
| 97 |
|
| 98 |
result = subprocess.run(cmd, capture_output=True, text=True, timeout=120)
|
| 99 |
|