Adding proxy to update procedure
[youtube-dl] / youtube_dl / __init__.py
index 5e2ed4d4b1b48b751b69795f352e72e7efbe5e02..760128546b9cedc31d16bf18b34893f184574565 100644 (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)
+            update_self(ydl.to_screen, opts.verbose, ydl.get_opener())
 
         # Remove cache dir
         if opts.rm_cachedir: