mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 19:33:59 +01:00
Write current epoch to infojson when using --no-clean-infojson
Closes #191
This commit is contained in:
parent
83b20a970d
commit
394dcd4486
|
@ -2539,6 +2539,7 @@ def download_with_info_file(self, info_filename):
|
||||||
@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'],
|
||||||
|
|
|
@ -2150,7 +2150,7 @@ def process_language(container, base_url, lang_code, query):
|
||||||
# This will error if there is no livechat
|
# This will error if there is no livechat
|
||||||
initial_data['contents']['twoColumnWatchNextResults']['conversationBar']['liveChatRenderer']['continuations'][0]['reloadContinuationData']['continuation']
|
initial_data['contents']['twoColumnWatchNextResults']['conversationBar']['liveChatRenderer']['continuations'][0]['reloadContinuationData']['continuation']
|
||||||
info['subtitles']['live_chat'] = [{
|
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,
|
'video_id': video_id,
|
||||||
'ext': 'json',
|
'ext': 'json',
|
||||||
'protocol': 'youtube_live_chat_replay',
|
'protocol': 'youtube_live_chat_replay',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user