Browse Source

[YoutubeDL] Ensure bool params always present in downloader

totalwebcasting
Sergey M․ 9 years ago
parent
commit
4abf617b9c
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      youtube_dl/YoutubeDL.py

+ 5
- 1
youtube_dl/YoutubeDL.py View File

@ -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):


Loading…
Cancel
Save