summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-05-03 20:07:35 +0200
committerPhilipp Hagemeister <[email protected]>2013-05-03 20:07:35 +0200
commitc34407d16c18df0e5045d00b46bfdc692329dcfd (patch)
tree2b3b9d9a6a816e4c9c8bf84c75e20d40a22e75cd /youtube_dl/__init__.py
parent5e34d2ebbf9906bded4201d7bd8bb82e9353de9f (diff)
downloadyoutube-dl-c34407d16c18df0e5045d00b46bfdc692329dcfd.tar.gz
youtube-dl-c34407d16c18df0e5045d00b46bfdc692329dcfd.zip
Simplify RedTube
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 808d4a8c2..823ca63a4 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -388,7 +388,8 @@ def _real_main(argv=None):
if 'http' in proxies and 'https' not in proxies:
proxies['https'] = proxies['http']
proxy_handler = compat_urllib_request.ProxyHandler(proxies)
- opener = compat_urllib_request.build_opener(proxy_handler, cookie_processor, YoutubeDLHandler())
+ https_handler = compat_urllib_request.HTTPSHandler()
+ opener = compat_urllib_request.build_opener(https_handler, proxy_handler, cookie_processor, YoutubeDLHandler())
compat_urllib_request.install_opener(opener)
socket.setdefaulttimeout(300) # 5 minutes should be enough (famous last words)