Update functions.py
Browse files- functions.py +2 -2
functions.py
CHANGED
@@ -124,7 +124,7 @@ def get_yt_audio_dl(url):
|
|
124 |
'format': 'bestaudio/best',
|
125 |
'postprocessors': [{
|
126 |
'key': 'FFmpegExtractAudio',
|
127 |
-
'preferredcodec': '
|
128 |
'preferredquality': '192',
|
129 |
}],
|
130 |
'outtmpl': temp_audio_file,
|
@@ -138,7 +138,7 @@ def get_yt_audio_dl(url):
|
|
138 |
ydl.download([url])
|
139 |
|
140 |
#with open(temp_audio_file+'.mp3', 'rb') as file:
|
141 |
-
audio_file = os.path.join('output', 'audio.
|
142 |
|
143 |
return audio_file, title
|
144 |
|
|
|
124 |
'format': 'bestaudio/best',
|
125 |
'postprocessors': [{
|
126 |
'key': 'FFmpegExtractAudio',
|
127 |
+
'preferredcodec': 'mp4',
|
128 |
'preferredquality': '192',
|
129 |
}],
|
130 |
'outtmpl': temp_audio_file,
|
|
|
138 |
ydl.download([url])
|
139 |
|
140 |
#with open(temp_audio_file+'.mp3', 'rb') as file:
|
141 |
+
audio_file = os.path.join('output', 'audio.mp4')
|
142 |
|
143 |
return audio_file, title
|
144 |
|