Spaces:
Running
Running
'format': "bestvideo[height<=720][ext=mp4]",
Browse files
app.py
CHANGED
@@ -667,7 +667,7 @@ def download_youtube_video(youtube_id, output_path=OUTPUT_PATH):
|
|
667 |
print(f"[Pytube] Video downloaded successfully: {output_path}/{youtube_id}.mp4")
|
668 |
except Exception as e:
|
669 |
ydl_opts = {
|
670 |
-
'format':
|
671 |
'outtmpl': os.path.join(output_path, f'{youtube_id}.mp4'), # Output filename template
|
672 |
}
|
673 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
|
|
667 |
print(f"[Pytube] Video downloaded successfully: {output_path}/{youtube_id}.mp4")
|
668 |
except Exception as e:
|
669 |
ydl_opts = {
|
670 |
+
'format': "bestvideo[height<=720][ext=mp4]",
|
671 |
'outtmpl': os.path.join(output_path, f'{youtube_id}.mp4'), # Output filename template
|
672 |
}
|
673 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|