summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-18 18:40:19 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-18 18:40:19 +0200
commite2e5dae64da60c37af65c7cffd18475a30fcbad3 (patch)
tree10768c8c1cf570826d725589bb30b706680e498b
parent09b23c902b5ab4a4ca9607128128d110a3c41875 (diff)
downloadyoutube-dl-e2e5dae64da60c37af65c7cffd18475a30fcbad3.tar.gz
youtube-dl-e2e5dae64da60c37af65c7cffd18475a30fcbad3.tar.xz
youtube-dl-e2e5dae64da60c37af65c7cffd18475a30fcbad3.zip
Add -f m4a
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
-rw-r--r--youtube_dl/options.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 9519594c9..eaba40bf2 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -708,7 +708,7 @@ class YoutubeDL(object):
             if video_formats:
                 return video_formats[0]
         else:
-            extensions = ['mp4', 'flv', 'webm', '3gp']
+            extensions = ['mp4', 'flv', 'webm', '3gp', 'm4a']
             if format_spec in extensions:
                 filter_f = lambda f: f['ext'] == format_spec
             else:
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 31baab469..7df20ae61 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -218,7 +218,7 @@ def parseOpts(overrideArguments=None):
 
     video_format.add_option('-f', '--format',
             action='store', dest='format', metavar='FORMAT', default=None,
-            help='video format code, specify the order of preference using slashes: "-f 22/17/18". "-f mp4" and "-f flv" are also supported. You can also use the special names "best", "bestvideo", "bestaudio", "worst", "worstvideo" and "worstaudio". By default, youtube-dl will pick the best quality.')
+            help='video format code, specify the order of preference using slashes: -f 22/17/18 .  -f mp4 , -f m4a and  -f flv  are also supported. You can also use the special names "best", "bestvideo", "bestaudio", "worst", "worstvideo" and "worstaudio". By default, youtube-dl will pick the best quality.')
     video_format.add_option('--all-formats',
             action='store_const', dest='format', help='download all available video formats', const='all')
     video_format.add_option('--prefer-free-formats',