A feature-rich command-line audio/video downloader
Fix `-J` when there are failed videos
pukkandan3ad56b42360b
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex f7fc828efb..d12131acd8 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -2908,6 +2908,8 @@ class YoutubeDL(object):@staticmethoddef sanitize_info(info_dict, remove_private_keys=False):''' Sanitize the infodict for converting to json '''+ if info_dict is None:+ return info_dictinfo_dict.setdefault('epoch', int(time.time()))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-json