A feature-rich command-line audio/video downloader
[ie/generic] Use https as fallback protocol (#14160)
seprofec30c56f0e9
diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.pyindex b3a27f31e8..b05d6ca590 100644--- a/yt_dlp/extractor/generic.py+++ b/yt_dlp/extractor/generic.py@@ -772,8 +772,8 @@ class GenericIE(InfoExtractor):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):