]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Using internal opener
authorDavid Ben Zakai <david.benzakai@gmail.com>
Tue, 10 Nov 2015 15:15:23 +0000 (17:15 +0200)
committerDavid Ben Zakai <david.benzakai@gmail.com>
Tue, 10 Nov 2015 15:15:23 +0000 (17:15 +0200)
youtube_dl/YoutubeDL.py
youtube_dl/__init__.py

index 5a0cc3f9a3c565ee4c16b9624ec29b8ad90d2b3c..1783ce01bf683ab0cfa349a1b040362f88cc1a47 100755 (executable)
@@ -1994,9 +1994,6 @@ class YoutubeDL(object):
             encoding = preferredencoding()
         return encoding
 
-    def get_opener(self):
-        return self._opener
-
     def _write_thumbnails(self, info_dict, filename):
         if self.params.get('writethumbnail', False):
             thumbnails = info_dict.get('thumbnails')
index 760128546b9cedc31d16bf18b34893f184574565..9f131f5db46e209a899fe3cc2d9b95ab17158bd5 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, ydl.get_opener())
+            update_self(ydl.to_screen, opts.verbose, ydl._opener)
 
         # Remove cache dir
         if opts.rm_cachedir: