projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3026164
)
[YoutubeDL] Ensure bool params always present in downloader
author
Sergey M․
<dstftw@gmail.com>
Sat, 5 Sep 2015 13:17:30 +0000
(19:17 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 5 Sep 2015 13:17:30 +0000
(19:17 +0600)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 982e658cea98dc55edfacea3e9eca4399b5ceb1a..0afda5ecb61fc4af66f959667703a98e32ef7031 100755
(executable)
--- 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):