aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.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/extractor/generic.py
parent4661e243f8db0befd0180090874a33dfc375b33c (diff)
[generic] Allow --default-search without colon
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index e13816c66..9b6498894 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -487,7 +487,8 @@ class GenericIE(InfoExtractor):
'Set --default-search "ytsearch" (or run youtube-dl "ytsearch:%s" ) to search YouTube'
) % (url, url), expected=True)
else:
- assert ':' in default_search
+ if ':' not in default_search:
+ default_search += ':'
return self.url_result(default_search + url)
url, smuggled_data = unsmuggle_url(url)