]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Simplify test
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 21 Sep 2011 16:49:08 +0000 (18:49 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 21 Sep 2011 16:49:08 +0000 (18:49 +0200)
youtube-dl

index 0e7f5d6eba48b6320792d4cf4c283595aef10c3a..2b08fab74eaf84bb3aaac23b2aec5d891b6ace13 100755 (executable)
@@ -3351,7 +3351,7 @@ class FFmpegExtractAudioPP(PostProcessor):
 
                more_opts = []
                if self._preferredcodec == 'best' or self._preferredcodec == filecodec:
-                       if filecodec == 'aac' or filecodec == 'mp3' or filecodec == 'vorbis':
+                       if filecodec in ['aac', 'mp3', 'vorbis']:
                                # Lossless if possible
                                acodec = 'copy'
                                extension = filecodec