]> jfr.im git - yt-dlp.git/blobdiff - test/helper.py
[ie] Migrate commonly plural fields to lists (#8917)
[yt-dlp.git] / test / helper.py
index 4aca47025e8a6ffbd4a46a392dd56a0d0e02514e..7760fd8d7fe32822834d4044c914ad739dd9a511 100644 (file)
@@ -223,6 +223,10 @@ def sanitize(key, value):
     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')