Compare commits

...

2 Commits

Author SHA1 Message Date
James Groom
1db8bec034
Merge a5286055a3 into c5098961b0 2024-08-18 22:47:22 +10:00
James Groom
a5286055a3
Use HTTPS as default protocol instead of HTTP 2021-09-13 06:44:55 +10:00

View File

@ -2538,8 +2538,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):