diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-24 01:01:30 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-24 01:07:15 +0530 |
commit | 6a5a30f9e2f646aa48ce1ce04e54ac12d13ac7fb (patch) | |
tree | 7b990337e27c21722011b754dbc2bc001b95a177 | |
parent | d37707bda466282b66ce381cbfd734f899f9e06e (diff) | |
download | hypervideo-pre-6a5a30f9e2f646aa48ce1ce04e54ac12d13ac7fb.tar.lz hypervideo-pre-6a5a30f9e2f646aa48ce1ce04e54ac12d13ac7fb.tar.xz hypervideo-pre-6a5a30f9e2f646aa48ce1ce04e54ac12d13ac7fb.zip |
Ensure `_type` is present in `info.json`
Closes #2447
-rw-r--r-- | yt_dlp/YoutubeDL.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index d3bcd84a7..d1fbd9a87 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3211,6 +3211,7 @@ class YoutubeDL(object): if info_dict is None: return info_dict info_dict.setdefault('epoch', int(time.time())) + info_dict.setdefault('_type', 'video') remove_keys = {'__original_infodict'} # Always remove this since this may contain a copy of the entire dict keep_keys = ['_type'] # Always keep this to facilitate load-info-json if remove_private_keys: |