aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-03-24 00:34:33 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-03-24 00:34:33 +0530
commit394dcd448646fdaebda38b83fddcfbe6f62ded31 (patch)
treebc2c0c7aa527a6b31f9b0021b19c0ed7f6c2e694 /yt_dlp/YoutubeDL.py
parent83b20a970d9f3401eaab6f520d099b599f250d5d (diff)
downloadhypervideo-pre-394dcd448646fdaebda38b83fddcfbe6f62ded31.tar.lz
hypervideo-pre-394dcd448646fdaebda38b83fddcfbe6f62ded31.tar.xz
hypervideo-pre-394dcd448646fdaebda38b83fddcfbe6f62ded31.zip
Write current epoch to infojson when using `--no-clean-infojson`
Closes #191
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 1e46b76b5..f527c6597 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2539,6 +2539,7 @@ class YoutubeDL(object):
@staticmethod
def filter_requested_info(info_dict, actually_filter=True):
if not actually_filter:
+ info_dict['epoch'] = int(time.time())
return info_dict
exceptions = {
'remove': ['requested_formats', 'requested_subtitles', 'filepath', 'entries'],