diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-20 08:27:47 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-20 08:33:55 +0530 |
commit | d76991ab0743a1e855bd44be597a40c89d5a814a (patch) | |
tree | 6c2dc38fc1f63516f07ce4a93766ca4c5a3cb3e6 | |
parent | 282f570918f936a3aa9f57d4c85de4693da882c9 (diff) | |
download | hypervideo-pre-d76991ab0743a1e855bd44be597a40c89d5a814a.tar.lz hypervideo-pre-d76991ab0743a1e855bd44be597a40c89d5a814a.tar.xz hypervideo-pre-d76991ab0743a1e855bd44be597a40c89d5a814a.zip |
Fix `--check-formats` for `mhtml`
Closes #1709
-rw-r--r-- | yt_dlp/downloader/mhtml.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/downloader/mhtml.py b/yt_dlp/downloader/mhtml.py index b75db18a8..1477f65a6 100644 --- a/yt_dlp/downloader/mhtml.py +++ b/yt_dlp/downloader/mhtml.py @@ -114,8 +114,8 @@ body > figure > img { 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, |