Authored by: bashonly
pull/8544/merge
bashonly 8 months ago committed by GitHub
parent b2cc150ad8
commit b136e2af34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2649,6 +2649,7 @@ class YoutubeDL:
for old_key, new_key in self._deprecated_multivalue_fields.items():
if new_key in info_dict and old_key in info_dict:
if '_version' not in info_dict: # HACK: Do not warn when using --load-info-json
self.deprecation_warning(f'Do not return {old_key!r} when {new_key!r} is present')
elif old_value := info_dict.get(old_key):
info_dict[new_key] = old_value.split(', ')

Loading…
Cancel
Save