mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-12 05:16:19 +00:00
Merge 58ddbdfd780eec39e194327269486595e1659833 into c5098961b04ce83f4615f2a846c84f803b072639
This commit is contained in:
commit
443e15b63c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user