Implement format selection in YoutubeDL
[youtube-dl] / youtube_dl / __init__.py
index 3513d719fd38b136c6b302b3717925fa35e7456e..bc8e97250e18a9f52ed48a2cafe3ee48348cef05 100644 (file)
@@ -208,7 +208,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')