Reduce default `--socket-timeout`

pull/1335/head
pukkandan 3 years ago
parent 2d9ec70423
commit 17bddf3e95
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -44,6 +44,5 @@
"writesubtitles": false,
"allsubtitles": false,
"listsubtitles": false,
"socket_timeout": 20,
"fixup": "never"
}

@ -3347,7 +3347,7 @@ class YoutubeDL(object):
def _setup_opener(self):
timeout_val = self.params.get('socket_timeout')
self._socket_timeout = 600 if timeout_val is None else float(timeout_val)
self._socket_timeout = 20 if timeout_val is None else float(timeout_val)
opts_cookiesfrombrowser = self.params.get('cookiesfrombrowser')
opts_cookiefile = self.params.get('cookiefile')

Loading…
Cancel
Save