X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2F__init__.py;h=9f131f5db46e209a899fe3cc2d9b95ab17158bd5;hb=90bb5667bf32574caa7c01f66b3ca8ad2ab77e81;hp=760128546b9cedc31d16bf18b34893f184574565;hpb=d3d3e2e3aac13c3c6fbae0fcfeaa41ce5ee9144b;p=youtube-dl diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 760128546..9f131f5db 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -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: