]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/YoutubeDL.py
Change the ie_name of YoutubeSearchDateIE
[youtube-dl.git] / youtube_dl / YoutubeDL.py
index b7393fd7983327c0df3d95f931d843967ca0a57e..b68b110a461f50af2d163997d1acfa18ece3afaf 100644 (file)
@@ -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')