aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-05 19:17:30 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-05 19:17:30 +0600
commit4abf617b9c662851889de4a3ceb5aa63040dc21e (patch)
treec035e2d7f9b6a782ba6f0847768804ac83646f9c /youtube_dl/YoutubeDL.py
parent3026164b1693ef57d0712cd6eeed6ae7a79b0916 (diff)
[YoutubeDL] Ensure bool params always present in downloader
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 982e658ce..0afda5ecb 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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):