Write current epoch to infojson when using `--no-clean-infojson`

Closes #191
pull/122/head
pukkandan 4 years ago
parent 83b20a970d
commit 394dcd4486
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -2539,6 +2539,7 @@ class YoutubeDL(object):
@staticmethod @staticmethod
def filter_requested_info(info_dict, actually_filter=True): def filter_requested_info(info_dict, actually_filter=True):
if not actually_filter: if not actually_filter:
info_dict['epoch'] = int(time.time())
return info_dict return info_dict
exceptions = { exceptions = {
'remove': ['requested_formats', 'requested_subtitles', 'filepath', 'entries'], 'remove': ['requested_formats', 'requested_subtitles', 'filepath', 'entries'],

Loading…
Cancel
Save