Update srv.py
Browse files
srv.py
CHANGED
@@ -63,7 +63,7 @@ def download_audio():
|
|
63 |
|
64 |
# Set up yt-dlp options to download only audio
|
65 |
ydl_opts = {
|
66 |
-
'format': 'bestaudio
|
67 |
'outtmpl': file_name.rsplit('.', 1)[0] + '.%(ext)s', # Output filename format
|
68 |
'cookiefile': 'www.youtube.com_cookies.txt', # Use cookies file if needed
|
69 |
'postprocessors': [{
|
|
|
63 |
|
64 |
# Set up yt-dlp options to download only audio
|
65 |
ydl_opts = {
|
66 |
+
'format': '140/bestaudio', # Download the best available audio
|
67 |
'outtmpl': file_name.rsplit('.', 1)[0] + '.%(ext)s', # Output filename format
|
68 |
'cookiefile': 'www.youtube.com_cookies.txt', # Use cookies file if needed
|
69 |
'postprocessors': [{
|