From 4bbe6475b0085d2d397337d9eecca7ec9b689f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 1 May 2019 10:51:16 +0200 Subject: [PATCH] fix ytdl sources sometimes not having a "bestaudio" format --- delojza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delojza.py b/delojza.py index b0e31e8..5d48c77 100755 --- a/delojza.py +++ b/delojza.py @@ -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',