aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-02-18 16:38:55 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-18 16:43:54 +0700
commit7d2b4aa04790b51a0b2b717eed618296115061a8 (patch)
treecfe0ff80940e18e0cd20929e2504f9071ec8fdf5 /youtube_dl/__init__.py
parent38662dfec7309fc1692f4fa85ccc67537590b240 (diff)
Respect --prefer-insecure while updating (closes #15497)
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 9bb952457..f9898082a 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -438,7 +438,7 @@ def _real_main(argv=None):
with YoutubeDL(ydl_opts) as ydl:
# Update version
if opts.update_self:
- update_self(ydl.to_screen, opts.verbose, ydl._opener)
+ update_self(ydl.to_screen, opts.verbose, ydl._opener, opts.prefer_insecure)
# Remove cache dir
if opts.rm_cachedir: