X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2F__init__.py;h=760128546b9cedc31d16bf18b34893f184574565;hb=d3d3e2e3aac13c3c6fbae0fcfeaa41ce5ee9144b;hp=5e2ed4d4b1b48b751b69795f352e72e7efbe5e02;hpb=37ca7b22b5521d7797ffefcd1456b4eb31320460;p=youtube-dl diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 5e2ed4d4b..760128546 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) + update_self(ydl.to_screen, opts.verbose, ydl.get_opener()) # Remove cache dir if opts.rm_cachedir: