mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Don't treat empty containers as None
in sanitize_info
This commit is contained in:
parent
7537e35b64
commit
ceb98323f2
1 changed files with 1 additions and 2 deletions
|
@ -3147,9 +3147,8 @@ def sanitize_info(info_dict, remove_private_keys=False):
|
|||
'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
|
||||
|
||||
|
|
Loading…
Reference in a new issue