Merge remote-tracking branch 'jaimeMF/format_selection'
[youtube-dl] / youtube_dl / __init__.py
index 3efa5dfd1e5f43c39b12b241df62592707a39a3b..cd642ce3b5a58aca93e4fb6cc7c65d3a540cdc35 100644 (file)
@@ -235,7 +235,7 @@ def parseOpts(overrideArguments=None):
 
 
     video_format.add_option('-f', '--format',
-            action='store', dest='format', metavar='FORMAT',
+            action='store', dest='format', metavar='FORMAT', default='best',
             help='video format code, specifiy the order of preference using slashes: "-f 22/17/18". "-f mp4" and "-f flv" are also supported')
     video_format.add_option('--all-formats',
             action='store_const', dest='format', help='download all available video formats', const='all')