]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in `--load-infojson` of playlists
authorpukkandan <redacted>
Sun, 7 Nov 2021 18:55:25 +0000 (00:25 +0530)
committerpukkandan <redacted>
Sun, 7 Nov 2021 18:56:08 +0000 (00:26 +0530)
Fixes: https://github.com/yt-dlp/yt-dlp/issues/1514#issuecomment-962659529
yt_dlp/YoutubeDL.py

index 0fbb3baa75eec601d9feca2f853fe3bf4f26f2da..92e430fda0a7661806346906e6d45751bffb6b90 100644 (file)
@@ -2985,7 +2985,7 @@ def sanitize_info(info_dict, remove_private_keys=False):
             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',