mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 02:51:29 +00:00
[YoutubeDL] Ensure bool params always present in downloader
This commit is contained in:
parent
3026164b16
commit
4abf617b9c
|
@ -284,7 +284,11 @@ def __init__(self, params=None, auto_init=True):
|
||||||
self._num_downloads = 0
|
self._num_downloads = 0
|
||||||
self._screen_file = [sys.stdout, sys.stderr][params.get('logtostderr', False)]
|
self._screen_file = [sys.stdout, sys.stderr][params.get('logtostderr', False)]
|
||||||
self._err_file = sys.stderr
|
self._err_file = sys.stderr
|
||||||
self.params = params
|
self.params = {
|
||||||
|
# Default parameters
|
||||||
|
'nocheckcertificate': False,
|
||||||
|
}
|
||||||
|
self.params.update(params)
|
||||||
self.cache = Cache(self)
|
self.cache = Cache(self)
|
||||||
|
|
||||||
if params.get('bidi_workaround', False):
|
if params.get('bidi_workaround', False):
|
||||||
|
|
Loading…
Reference in a new issue