mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 21:25:45 +00:00
Use HTTPS as default protocol instead of HTTP
This commit is contained in:
parent
a803582717
commit
a5286055a3
1 changed files with 2 additions and 2 deletions
|
@ -2344,8 +2344,8 @@ class GenericIE(InfoExtractor):
|
||||||
|
|
||||||
if default_search in ('auto', 'auto_warning', 'fixup_error'):
|
if default_search in ('auto', 'auto_warning', 'fixup_error'):
|
||||||
if re.match(r'^[^\s/]+\.[^\s/]+/', 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 https://')
|
||||||
return self.url_result('http://' + url)
|
return self.url_result('https://' + url)
|
||||||
elif default_search != 'fixup_error':
|
elif default_search != 'fixup_error':
|
||||||
if default_search == 'auto_warning':
|
if default_search == 'auto_warning':
|
||||||
if re.match(r'^(?:url|URL)$', url):
|
if re.match(r'^(?:url|URL)$', url):
|
||||||
|
|
Loading…
Reference in a new issue