From ceb98323f2b6a4c5b654a203a4d8137e88388957 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 28 Dec 2021 02:52:11 +0530 Subject: [PATCH] Don't treat empty containers as `None` in `sanitize_info` --- yt_dlp/YoutubeDL.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 6322daa42f..1d1429b5f2 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3147,9 +3147,8 @@ class YoutubeDL(object): 'requested_formats', 'requested_subtitles', 'requested_entries', 'entries', 'filepath', 'infojson_filename', 'original_url', 'playlist_autonumber', } - empty_values = (None, {}, [], set(), tuple()) reject = lambda k, v: k not in keep_keys and ( - k.startswith('_') or k in remove_keys or v in empty_values) + k.startswith('_') or k in remove_keys or v is None) else: reject = lambda k, v: k in remove_keys