]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/__init__.py
Fix motherless test 0
[youtube-dl.git] / youtube_dl / __init__.py
index 42d0a018014045f4a288c8c48669edd669e7bca9..6b0efe059352ab252476b4df808c6cfdbfdcc121 100644 (file)
@@ -75,6 +75,12 @@ __authors__  = (
     'Ole Ernst',
     'Aaron McDaniel (mcd1992)',
     'Magnus Kolstad',
+    'Hari Padmanaban',
+    'Carlos Ramos',
+    '5moufl',
+    'lenaten',
+    'Dennis Scheiba',
+    'Damon Timm',
 )
 
 __license__ = 'Public Domain'
@@ -251,8 +257,6 @@ def _real_main(argv=None):
         date = DateRange.day(opts.date)
     else:
         date = DateRange(opts.dateafter, opts.datebefore)
-    if opts.default_search not in ('auto', 'auto_warning', 'error', 'fixup_error', None) and ':' not in opts.default_search:
-        parser.error(u'--default-search invalid; did you forget a colon (:) at the end?')
 
     # Do not download videos when there are audio-only formats
     if opts.extractaudio and not opts.keepvideo and opts.format is None:
@@ -365,6 +369,7 @@ def _real_main(argv=None):
         'youtube_include_dash_manifest': opts.youtube_include_dash_manifest,
         'encoding': opts.encoding,
         'exec_cmd': opts.exec_cmd,
+        'extract_flat': opts.extract_flat,
     }
 
     with YoutubeDL(ydl_opts) as ydl: