1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 02:17:21 +08:00

Merge pull request #42 from ytdl-org/master

[pull] master from ytdl-org:master
This commit is contained in:
pull[bot] 2019-07-20 17:01:01 +00:00 committed by GitHub
commit eb05ed438d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2226,7 +2226,7 @@ class GenericIE(InfoExtractor):
default_search = 'fixup_error' default_search = 'fixup_error'
if default_search in ('auto', 'auto_warning', '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') self._downloader.report_warning('The url doesn\'t specify the protocol, trying with http')
return self.url_result('http://' + url) return self.url_result('http://' + url)
elif default_search != 'fixup_error': elif default_search != 'fixup_error':