diff options
author | Philipp Hagemeister <[email protected]> | 2013-11-25 19:11:01 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-11-25 19:11:01 +0100 |
commit | d46cc192d763f66655247ee122e397626481caca (patch) | |
tree | 3d55749eba41bf4f71394ac11dbc96a1dd7ee3a8 | |
parent | bb2bebdbe1ef06adc3c1cb2d078e061f44cf7d29 (diff) | |
download | youtube-dl-d46cc192d763f66655247ee122e397626481caca.tar.gz youtube-dl-d46cc192d763f66655247ee122e397626481caca.zip |
Reduce socket timeout
-rw-r--r-- | youtube_dl/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index a1ef3a94a..0cef1daf3 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -968,7 +968,7 @@ class YoutubeDL(object): proxy_map.update(handler.proxies) write_string(u'[debug] Proxy map: ' + compat_str(proxy_map) + u'\n') - def _setup_opener(self, timeout=300): + def _setup_opener(self, timeout=20): opts_cookiefile = self.params.get('cookiefile') opts_proxy = self.params.get('proxy') |