mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 10:31:29 +00:00
parent
b2cc150ad8
commit
b136e2af34
|
@ -2649,7 +2649,8 @@ def _fill_common_fields(self, info_dict, final=True):
|
||||||
|
|
||||||
for old_key, new_key in self._deprecated_multivalue_fields.items():
|
for old_key, new_key in self._deprecated_multivalue_fields.items():
|
||||||
if new_key in info_dict and old_key in info_dict:
|
if new_key in info_dict and old_key in info_dict:
|
||||||
self.deprecation_warning(f'Do not return {old_key!r} when {new_key!r} is present')
|
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):
|
elif old_value := info_dict.get(old_key):
|
||||||
info_dict[new_key] = old_value.split(', ')
|
info_dict[new_key] = old_value.split(', ')
|
||||||
elif new_value := info_dict.get(new_key):
|
elif new_value := info_dict.get(new_key):
|
||||||
|
|
Loading…
Reference in a new issue