Reduce default --socket-timeout

This commit is contained in:
pukkandan 2021-10-18 16:10:27 +05:30
parent 2d9ec70423
commit 17bddf3e95
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
2 changed files with 1 additions and 2 deletions

View file

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

View file

@ -3347,7 +3347,7 @@ def python_implementation():
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')