mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Add --socket-timeout option
This commit is contained in:
		| @@ -971,7 +971,9 @@ class YoutubeDL(object): | ||||
|         write_string(u'[debug] Proxy map: ' + compat_str(proxy_map) + u'\n') | ||||
|  | ||||
|     def _setup_opener(self): | ||||
|         timeout = float(self.params.get('socket_timeout', 600)) | ||||
|         timeout_val = self.params.get('socket_timeout') | ||||
|         timeout = 600 if timeout_val is None else float(timeout_val) | ||||
|  | ||||
|         opts_cookiefile = self.params.get('cookiefile') | ||||
|         opts_proxy = self.params.get('proxy') | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister