[YoutubeDL] Ensure bool params always present in downloader
authorSergey M․ <dstftw@gmail.com>
Sat, 5 Sep 2015 13:17:30 +0000 (19:17 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 5 Sep 2015 13:17:30 +0000 (19:17 +0600)
youtube_dl/YoutubeDL.py

index 982e658cea98dc55edfacea3e9eca4399b5ceb1a..0afda5ecb61fc4af66f959667703a98e32ef7031 100755 (executable)
@@ -284,7 +284,11 @@ class YoutubeDL(object):
         self._num_downloads = 0
         self._screen_file = [sys.stdout, sys.stderr][params.get('logtostderr', False)]
         self._err_file = sys.stderr
-        self.params = params
+        self.params = {
+            # Default parameters
+            'nocheckcertificate': False,
+        }
+        self.params.update(params)
         self.cache = Cache(self)
 
         if params.get('bidi_workaround', False):