A feature-rich command-line audio/video downloader
Write current epoch to infojson when using `--no-clean-infojson` Closes #191
pukkandan394dcd448646
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 1e46b76b58..f527c65974 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -2539,6 +2539,7 @@ class YoutubeDL(object):@staticmethoddef filter_requested_info(info_dict, actually_filter=True):if not actually_filter:+ info_dict['epoch'] = int(time.time())return info_dictexceptions = {'remove': ['requested_formats', 'requested_subtitles', 'filepath', 'entries'],diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.pyindex 57300114d4..620aab4461 100644--- a/yt_dlp/extractor/youtube.py+++ b/yt_dlp/extractor/youtube.py@@ -2150,7 +2150,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):# This will error if there is no livechatinitial_data['contents']['twoColumnWatchNextResults']['conversationBar']['liveChatRenderer']['continuations'][0]['reloadContinuationData']['continuation']info['subtitles']['live_chat'] = [{- 'url': 'https://www.youtube.com/watch?v=%s' % video_id, # url is needed to set cookies+ 'url': 'https://www.youtube.com/watch?v=%s' % video_id, # url is needed to set cookies'video_id': video_id,'ext': 'json','protocol': 'youtube_live_chat_replay',