Browse Source

Using internal opener

master
David Ben Zakai 9 years ago
parent
commit
90bb5667bf
2 changed files with 1 additions and 4 deletions
  1. 3
      youtube_dl/YoutubeDL.py
  2. 2
      youtube_dl/__init__.py

3
youtube_dl/YoutubeDL.py

@ -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')

2
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:

Loading…
Cancel
Save