aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-10-23 21:13:45 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-10-23 21:13:45 +0200
commitf2f2c0c2c642aecc1a8954ad3d8639425036e066 (patch)
treea1838cab9e1f3aad9c7888d3edcdeef578e3e586 /youtube_dl/__init__.py
parent4661e243f8db0befd0180090874a33dfc375b33c (diff)
downloadyoutube-dl-f2f2c0c2c642aecc1a8954ad3d8639425036e066.tar.xz
[generic] Allow --default-search without colon
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 7f2b4dfcc..a53f6a621 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -255,8 +255,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: