projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1c39a
)
[extractor/generic] Restrict --default-search schemeless URLs detection pattern ...
author
Sergey M․
<dstftw@gmail.com>
Sat, 20 Jul 2019 16:08:26 +0000
(23:08 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 20 Jul 2019 16:08:26 +0000
(23:08 +0700)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 77e2174609d817fa2934a2c56fb11cf22bd9193f..d34fc4b15ceda2d154e0f7bee163321430c599c2 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-2226,7
+2226,7
@@
class GenericIE(InfoExtractor):
default_search = 'fixup_error'
if default_search in ('auto', 'auto_warning', 'fixup_error'):
- if
'/' in url
:
+ if
re.match(r'^[^\s/]+\.[^\s/]+/', url)
:
self._downloader.report_warning('The url doesn\'t specify the protocol, trying with http')
return self.url_result('http://' + url)
elif default_search != 'fixup_error':