From 5786435e54a0d6b6784536942f92b30a37bc3bd0 Mon Sep 17 00:00:00 2001 From: Hattshire Date: Tue, 26 Feb 2019 17:02:46 -0300 Subject: [PATCH] Check style convention with flake8 before pull-requesting. --- youtube_dl/postprocessor/ffmpeg.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 90e421d9b..536711f05 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -307,23 +307,23 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor): # The opus codec doesn't support the -aq option if int(self._preferredquality) < 10 and extension != 'opus': more_opts += ['-q:a', self._preferredquality] - else if int(self._preferredquality) < 10: + elif int(self._preferredquality) < 10: # Handle opus quality/bitrate using Xiph.org's Recommended Settings - if int(self._preferredquality) == 9: + if int(self._preferredquality) == 9: more_opts += ['-b:a', '450k'] - else if int(self._preferredquality) == 8: + elif int(self._preferredquality) == 8: more_opts += ['-b:a', '256k'] - else if int(self._preferredquality) == 7: + elif int(self._preferredquality) == 7: more_opts += ['-b:a', '128k'] - else if int(self._preferredquality) == 6: + elif int(self._preferredquality) == 6: more_opts += ['-b:a', '96k'] - else if int(self._preferredquality) == 5: + elif int(self._preferredquality) == 5: more_opts += ['-b:a', '64k'] - else if int(self._preferredquality) == 4: + elif int(self._preferredquality) == 4: more_opts += ['-b:a', '32k'] - else if int(self._preferredquality) == 3: + elif int(self._preferredquality) == 3: more_opts += ['-b:a', '24k'] - else if int(self._preferredquality) == 2: + elif int(self._preferredquality) == 2: more_opts += ['-b:a', '10k'] else: more_opts += ['-b:a', '6k']