Spaces:
Runtime error
Runtime error
Commit
·
3fe5649
1
Parent(s):
e754911
Update app.py
Browse files
app.py
CHANGED
@@ -111,9 +111,8 @@ def download_youtube_clip(
|
|
111 |
output_path.unlink()
|
112 |
|
113 |
quiet = "--quiet --no-warnings" if quiet else ""
|
114 |
-
command = f"""
|
115 |
-
|
116 |
-
"".strip()
|
117 |
|
118 |
attempts = 0
|
119 |
while True:
|
|
|
111 |
output_path.unlink()
|
112 |
|
113 |
quiet = "--quiet --no-warnings" if quiet else ""
|
114 |
+
command = f"""yt-dlp {quiet} -x --audio-format wav -f bestaudio -o "{output_filename}" --download-sections "*{start_time}-{end_time}" "{url_base}{video_identifier}""".strip() # noqa: E501
|
115 |
+
|
|
|
116 |
|
117 |
attempts = 0
|
118 |
while True:
|