Update app.py
Browse files
app.py
CHANGED
@@ -68,8 +68,7 @@ def download_yt_audio(yt_url, filename):
|
|
68 |
"%HH:%MM:%SS", time.gmtime(YT_LENGTH_LIMIT_S))
|
69 |
file_length_hms = time.strftime(
|
70 |
"%HH:%MM:%SS", time.gmtime(file_length_s))
|
71 |
-
raise gr.Error(f"Maximum YouTube length is {yt_length_limit_hms}, got {
|
72 |
-
file_length_hms} YouTube video.")
|
73 |
|
74 |
ydl_opts = {"outtmpl": filename,
|
75 |
"format": "worstvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"}
|
|
|
68 |
"%HH:%MM:%SS", time.gmtime(YT_LENGTH_LIMIT_S))
|
69 |
file_length_hms = time.strftime(
|
70 |
"%HH:%MM:%SS", time.gmtime(file_length_s))
|
71 |
+
raise gr.Error(f"Maximum YouTube length is {yt_length_limit_hms}, got {file_length_hms} YouTube video.")
|
|
|
72 |
|
73 |
ydl_opts = {"outtmpl": filename,
|
74 |
"format": "worstvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"}
|