Skip to content

A feature-rich command-line audio/video downloader

Fix bug in `--load-infojson` of playlists Fixes: https://github.com/yt-dlp/yt-dlp/issues/1514#issuecomment-962659529

pukkandana49891c761a6
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 0fbb3baa75..92e430fda0 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2985,7 +2985,7 @@ class YoutubeDL(object):
return info_dict
info_dict.setdefault('epoch', int(time.time()))
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
if remove_private_keys:
remove_keys |= {
'requested_formats', 'requested_subtitles', 'requested_entries',