mirror of https://github.com/yt-dlp/yt-dlp.git
Reduce default `--socket-timeout`
This commit is contained in:
parent
2d9ec70423
commit
17bddf3e95
|
@ -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…
Reference in New Issue