Skip to content

Commit

Permalink
Fix --check-formats for mhtml
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Nov 20, 2021
1 parent 282f570 commit d76991a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp/downloader/mhtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def real_download(self, filename, info_dict):
fragment_base_url = info_dict.get('fragment_base_url')
fragments = info_dict['fragments'][:1] if self.params.get(
'test', False) else info_dict['fragments']
title = info_dict['title']
origin = info_dict['webpage_url']
title = info_dict.get('title', info_dict['format_id'])
origin = info_dict.get('webpage_url', info_dict['url'])

ctx = {
'filename': filename,
Expand Down

0 comments on commit d76991a

Please sign in to comment.