Using internal opener

This commit is contained in:
David Ben Zakai 2015-11-10 17:15:23 +02:00
parent d3d3e2e3aa
commit 90bb5667bf
2 changed files with 1 additions and 4 deletions

View file

@ -377,7 +377,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.get_opener())
update_self(ydl.to_screen, opts.verbose, ydl._opener)
# Remove cache dir
if opts.rm_cachedir: