Spaces:
Runtime error
Runtime error
Bug Fixes
Browse files- media_download.py +5 -5
media_download.py
CHANGED
@@ -173,7 +173,7 @@ class YoutubeDownloader(MediaDownloader):
|
|
173 |
|
174 |
try:
|
175 |
# Download Command
|
176 |
-
command = ["yt-dlp", "--list-formats", url,
|
177 |
"--get-filename", "--format", "best[ext=mp4]/best[ext=webm]"]
|
178 |
print(' '.join(command))
|
179 |
|
@@ -357,7 +357,7 @@ class YoutubeDownloader(MediaDownloader):
|
|
357 |
# Download Command
|
358 |
command = [
|
359 |
"yt-dlp",
|
360 |
-
url,
|
361 |
"-S", f"res:{video_quality},vcodec:{video_codec},acodec:{audio_codec}",
|
362 |
"--merge-output-format", video_format,
|
363 |
"-o", f"{output_path}",
|
@@ -432,7 +432,7 @@ class YoutubeDownloader(MediaDownloader):
|
|
432 |
# Download Command
|
433 |
command = [
|
434 |
"yt-dlp",
|
435 |
-
url,
|
436 |
"-S", f"res:{media_quality},vcodec:{video_codec},acodec:{audio_codec}",
|
437 |
"--merge-output-format", media_format,
|
438 |
"-o", f"{output_path}",
|
@@ -492,7 +492,7 @@ class YoutubeDownloader(MediaDownloader):
|
|
492 |
"--external-downloader", "ffmpeg",
|
493 |
"--external-downloader-args", chunk_string,
|
494 |
"-o", output_path,
|
495 |
-
url, "-q"
|
496 |
]
|
497 |
|
498 |
# Running the command using Subprocess
|
@@ -541,7 +541,7 @@ class YoutubeDownloader(MediaDownloader):
|
|
541 |
# Download Command
|
542 |
command = [
|
543 |
"yt-dlp",
|
544 |
-
url,
|
545 |
"-S", f"res:{video_quality},vcodec:{video_codec},acodec:{audio_codec}",
|
546 |
"--merge-output-format", video_format,
|
547 |
"--download-sections", f"*{self.start_time}-{self.end_time}",
|
|
|
173 |
|
174 |
try:
|
175 |
# Download Command
|
176 |
+
command = ["yt-dlp", "--list-formats", self.url,
|
177 |
"--get-filename", "--format", "best[ext=mp4]/best[ext=webm]"]
|
178 |
print(' '.join(command))
|
179 |
|
|
|
357 |
# Download Command
|
358 |
command = [
|
359 |
"yt-dlp",
|
360 |
+
self.url,
|
361 |
"-S", f"res:{video_quality},vcodec:{video_codec},acodec:{audio_codec}",
|
362 |
"--merge-output-format", video_format,
|
363 |
"-o", f"{output_path}",
|
|
|
432 |
# Download Command
|
433 |
command = [
|
434 |
"yt-dlp",
|
435 |
+
self.url,
|
436 |
"-S", f"res:{media_quality},vcodec:{video_codec},acodec:{audio_codec}",
|
437 |
"--merge-output-format", media_format,
|
438 |
"-o", f"{output_path}",
|
|
|
492 |
"--external-downloader", "ffmpeg",
|
493 |
"--external-downloader-args", chunk_string,
|
494 |
"-o", output_path,
|
495 |
+
self.url, "-q"
|
496 |
]
|
497 |
|
498 |
# Running the command using Subprocess
|
|
|
541 |
# Download Command
|
542 |
command = [
|
543 |
"yt-dlp",
|
544 |
+
self.url,
|
545 |
"-S", f"res:{video_quality},vcodec:{video_codec},acodec:{audio_codec}",
|
546 |
"--merge-output-format", video_format,
|
547 |
"--download-sections", f"*{self.start_time}-{self.end_time}",
|