summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-02-01 18:23:20 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-02-01 18:23:20 +0100
commit0e33684194c9e364c70e0da3400b9568fa636538 (patch)
treeee2f0618c205c02b10d438ae33c9bdb136f5e2d2
parent9e982f9e4eff4219f8c10df7529280b7eab16236 (diff)
downloadyoutube-dl-0e33684194c9e364c70e0da3400b9568fa636538.tar.gz
youtube-dl-0e33684194c9e364c70e0da3400b9568fa636538.tar.xz
youtube-dl-0e33684194c9e364c70e0da3400b9568fa636538.zip
Switch to m4a by default (Closes #240)
-rw-r--r--youtube_dl/PostProcessor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/PostProcessor.py b/youtube_dl/PostProcessor.py
index 545b6992b..70dc01004 100644
--- a/youtube_dl/PostProcessor.py
+++ b/youtube_dl/PostProcessor.py
@@ -143,10 +143,10 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
 
         more_opts = []
         if self._preferredcodec == 'best' or self._preferredcodec == filecodec or (self._preferredcodec == 'm4a' and filecodec == 'aac'):
-            if self._preferredcodec == 'm4a' and filecodec == 'aac':
+            if filecodec == 'aac' and self._preferredcodec in ['m4a', 'best']:
                 # Lossless, but in another container
                 acodec = 'copy'
-                extension = self._preferredcodec
+                extension = 'm4a'
                 more_opts = [self._exes['avconv'] and '-bsf:a' or '-absf', 'aac_adtstoasc']
             elif filecodec in ['aac', 'mp3', 'vorbis', 'opus']:
                 # Lossless if possible