Skip to content

Commit

Permalink
[YoutubeDL] also collect from urlopen
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesmiscore committed Nov 23, 2021
1 parent 26665a9 commit 7863984
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt_dlp/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -3558,6 +3558,7 @@ def _row(lang, formats):
[_row(lang, formats) for lang, formats in subtitles.items()],
hide_empty=True))

@__fd()
def urlopen(self, req):
""" Start an HTTP download """
if isinstance(req, compat_basestring):
Expand Down Expand Up @@ -3941,7 +3942,7 @@ def _write_thumbnails(self, label, info_dict, filename, thumb_filename_base=None
break
return ret

@__fd
@__fd()
def open(self, filename, open_mode, **kwargs):
if self.params.get('escape_long_names', False):
return escaped_open(filename, open_mode, **kwargs)
Expand Down

0 comments on commit 7863984

Please sign in to comment.