nickmuchi commited on
Commit
3e374bf
1 Parent(s): 25d3064

Update functions.py

Browse files
Files changed (1) hide show
  1. 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': 'mp4',
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.mp4')
142
 
143
  return audio_file, title
144
 
 
124
  'format': 'bestaudio/best',
125
  'postprocessors': [{
126
  'key': 'FFmpegExtractAudio',
127
+ 'preferredcodec': 'mp3',
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.mp3')
142
 
143
  return audio_file, title
144