Respect --prefer-insecure while updating (closes #15497)

This commit is contained in:
Sergey M․
2018-02-18 16:38:55 +07:00
parent 38662dfec7
commit 7d2b4aa047
3 changed files with 11 additions and 6 deletions

View File

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