aboutsummaryrefslogtreecommitdiff
path: root/test/helper.py
diff options
context:
space:
mode:
authorLev <57556659+llistochek@users.noreply.github.com>2024-02-20 07:19:24 +0000
committerGitHub <noreply@github.com>2024-02-20 12:49:24 +0530
commit104a7b5a46dc1805157fb4cc11c05876934d37c1 (patch)
tree983be1fc3ba02a1314ba87badff6b8fe39b49843 /test/helper.py
parent7e90e34fa4617b53f8c8a9e69f460508cb1f51b0 (diff)
[ie] Migrate commonly plural fields to lists (#8917)
Authored by: llistochek, pukkandan Related: #3944
Diffstat (limited to 'test/helper.py')
-rw-r--r--test/helper.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/helper.py b/test/helper.py
index 4aca47025..7760fd8d7 100644
--- a/test/helper.py
+++ b/test/helper.py
@@ -223,6 +223,10 @@ def sanitize_got_info_dict(got_dict):
if test_info_dict.get('display_id') == test_info_dict.get('id'):
test_info_dict.pop('display_id')
+ # Remove deprecated fields
+ for old in YoutubeDL._deprecated_multivalue_fields.keys():
+ test_info_dict.pop(old, None)
+
# release_year may be generated from release_date
if try_call(lambda: test_info_dict['release_year'] == int(test_info_dict['release_date'][:4])):
test_info_dict.pop('release_year')