A feature-rich command-line audio/video downloader
Ensure `_type` is present in `info.json`
pukkandan6a5a30f9e2f6
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex d3bcd84a7a..d1fbd9a875 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_dictinfo_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 dictkeep_keys = ['_type'] # Always keep this to facilitate load-info-jsonif remove_private_keys: