mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-17 06:35:42 +07:00
[ie/generic] Use https as fallback protocol (#14160)
Authored by: seproDev
This commit is contained in:
@@ -772,8 +772,8 @@ def _real_extract(self, url):
|
||||
|
||||
if default_search in ('auto', 'auto_warning', 'fixup_error'):
|
||||
if re.match(r'[^\s/]+\.[^\s/]+/', url):
|
||||
self.report_warning('The url doesn\'t specify the protocol, trying with http')
|
||||
return self.url_result('http://' + url)
|
||||
self.report_warning('The url doesn\'t specify the protocol, trying with https')
|
||||
return self.url_result('https://' + url)
|
||||
elif default_search != 'fixup_error':
|
||||
if default_search == 'auto_warning':
|
||||
if re.match(r'^(?:url|URL)$', url):
|
||||
|
||||
Reference in New Issue
Block a user