diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-03-09 17:07:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-09 23:07:59 +0000 |
commit | b136e2af341f7a88028aea4c5cd50efe2fa9b182 (patch) | |
tree | 6746dc55ddff9b062c78b1f420e4d47fa67fe51e | |
parent | b2cc150ad83ba20ceb2d6e73d09854eed3c2d05c (diff) |
Bugfix for 104a7b5a46dc1805157fb4cc11c05876934d37c1 (#9394)
Authored by: bashonly
-rw-r--r-- | yt_dlp/YoutubeDL.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index ef66306b1..52a709392 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2649,7 +2649,8 @@ 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: - 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): info_dict[new_key] = old_value.split(', ') elif new_value := info_dict.get(new_key): |