mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-02 05:07:55 +01:00
Check style convention with flake8 before pull-requesting.
This commit is contained in:
parent
c3029c4468
commit
5786435e54
@ -307,23 +307,23 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
|
|||||||
# The opus codec doesn't support the -aq option
|
# The opus codec doesn't support the -aq option
|
||||||
if int(self._preferredquality) < 10 and extension != 'opus':
|
if int(self._preferredquality) < 10 and extension != 'opus':
|
||||||
more_opts += ['-q:a', self._preferredquality]
|
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
|
# 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']
|
more_opts += ['-b:a', '450k']
|
||||||
else if int(self._preferredquality) == 8:
|
elif int(self._preferredquality) == 8:
|
||||||
more_opts += ['-b:a', '256k']
|
more_opts += ['-b:a', '256k']
|
||||||
else if int(self._preferredquality) == 7:
|
elif int(self._preferredquality) == 7:
|
||||||
more_opts += ['-b:a', '128k']
|
more_opts += ['-b:a', '128k']
|
||||||
else if int(self._preferredquality) == 6:
|
elif int(self._preferredquality) == 6:
|
||||||
more_opts += ['-b:a', '96k']
|
more_opts += ['-b:a', '96k']
|
||||||
else if int(self._preferredquality) == 5:
|
elif int(self._preferredquality) == 5:
|
||||||
more_opts += ['-b:a', '64k']
|
more_opts += ['-b:a', '64k']
|
||||||
else if int(self._preferredquality) == 4:
|
elif int(self._preferredquality) == 4:
|
||||||
more_opts += ['-b:a', '32k']
|
more_opts += ['-b:a', '32k']
|
||||||
else if int(self._preferredquality) == 3:
|
elif int(self._preferredquality) == 3:
|
||||||
more_opts += ['-b:a', '24k']
|
more_opts += ['-b:a', '24k']
|
||||||
else if int(self._preferredquality) == 2:
|
elif int(self._preferredquality) == 2:
|
||||||
more_opts += ['-b:a', '10k']
|
more_opts += ['-b:a', '10k']
|
||||||
else:
|
else:
|
||||||
more_opts += ['-b:a', '6k']
|
more_opts += ['-b:a', '6k']
|
||||||
|
Loading…
Reference in New Issue
Block a user