fix ytdl sources sometimes not having a "bestaudio" format
This commit is contained in:
parent
c17b3df3f5
commit
4bbe6475b0
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class DelojzaBot:
|
|||
'outtmpl': os.path.join(self.tmp_dir, '{}__%(title)s__%(id)s.%(ext)s'.format(datestr(date)))
|
||||
}
|
||||
if extract:
|
||||
ydl_opts['format'] = 'bestaudio'
|
||||
ydl_opts['format'] = 'bestaudio/best'
|
||||
ydl_opts['postprocessors'] = [{
|
||||
'key': 'FFmpegExtractAudio',
|
||||
'preferredcodec': 'mp3',
|
||||
|
|
Loading…
Reference in a new issue