diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-15 20:31:35 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-17 04:29:55 +0530 |
commit | 3ad56b42360bd73c1c9c68dbd1d65d1ca492d676 (patch) | |
tree | b769901a46df05060311cad395aea54744f2d73f | |
parent | 5d62709bc73dff62c9c47417fe29ad010f484f54 (diff) | |
download | hypervideo-pre-3ad56b42360bd73c1c9c68dbd1d65d1ca492d676.tar.lz hypervideo-pre-3ad56b42360bd73c1c9c68dbd1d65d1ca492d676.tar.xz hypervideo-pre-3ad56b42360bd73c1c9c68dbd1d65d1ca492d676.zip |
Fix `-J` when there are failed videos
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index f7fc828ef..d12131acd 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2908,6 +2908,8 @@ class YoutubeDL(object): @staticmethod def sanitize_info(info_dict, remove_private_keys=False): ''' Sanitize the infodict for converting to json ''' + if info_dict is None: + return info_dict info_dict.setdefault('epoch', int(time.time())) 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 |