Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -251,7 +251,7 @@ def download_audio(url, audio_name):
|
|
251 |
'preferredcodec': 'wav',
|
252 |
'preferredquality': '192',
|
253 |
}],
|
254 |
-
|
255 |
}
|
256 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
257 |
ydl.download([url])
|
|
|
251 |
'preferredcodec': 'wav',
|
252 |
'preferredquality': '192',
|
253 |
}],
|
254 |
+
"outtmpl": f'audios/{audio_name}',
|
255 |
}
|
256 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
257 |
ydl.download([url])
|