1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-07-11 21:06:19 +00:00

Merge 58ddbdfd780eec39e194327269486595e1659833 into c5098961b04ce83f4615f2a846c84f803b072639

This commit is contained in:
Deleted user 2024-08-21 22:21:51 -04:00 committed by GitHub
commit 443e15b63c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2610,9 +2610,6 @@ class YoutubeDL(object):
proxies = {'http': opts_proxy, 'https': opts_proxy}
else:
proxies = compat_urllib_request.getproxies()
# Set HTTPS proxy to HTTP one if given (https://github.com/ytdl-org/youtube-dl/issues/805)
if 'http' in proxies and 'https' not in proxies:
proxies['https'] = proxies['http']
proxy_handler = PerRequestProxyHandler(proxies)
debuglevel = 1 if self.params.get('debug_printtraffic') else 0