mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 15:16:52 +01:00
Fix -J
when there are failed videos
This commit is contained in:
parent
5d62709bc7
commit
3ad56b4236
@ -2908,6 +2908,8 @@ def download_with_info_file(self, info_filename):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def sanitize_info(info_dict, remove_private_keys=False):
|
def sanitize_info(info_dict, remove_private_keys=False):
|
||||||
''' Sanitize the infodict for converting to json '''
|
''' Sanitize the infodict for converting to json '''
|
||||||
|
if info_dict is None:
|
||||||
|
return info_dict
|
||||||
info_dict.setdefault('epoch', int(time.time()))
|
info_dict.setdefault('epoch', int(time.time()))
|
||||||
remove_keys = {'__original_infodict'} # Always remove this since this may contain a copy of the entire dict
|
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
|
keep_keys = ['_type'], # Always keep this to facilitate load-info-json
|
||||||
|
Loading…
Reference in New Issue
Block a user