mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-06-26 05:39:34 +00:00
Merge 58ddbdfd78
into 0153b387e5
This commit is contained in:
commit
9682e1c055
|
@ -2584,9 +2584,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…
Reference in a new issue