Update yt_dlp/YoutubeDL.py

This commit is contained in:
pukkandan 2024-01-03 09:16:21 +05:30 committed by GitHub
parent d60ad19944
commit ac52bf0952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1753,9 +1753,8 @@ def fix_deprecated_fields(self, ie_result):
'genre': 'genre_list', 'genre': 'genre_list',
} }
for deprecated_field, new_field in deprecated_multivalue_fields.items(): for deprecated_field, new_field in deprecated_multivalue_fields.items():
if deprecated_field not in ie_result: if ie_result.get(deprecated_field):
continue ie_result[new_field] = re.split(r', ?', ie_result[deprecated_field])
ie_result[new_field] = re.split(r', ?', ie_result[deprecated_field])
def add_default_extra_info(self, ie_result, ie, url): def add_default_extra_info(self, ie_result, ie, url):
if url is not None: if url is not None: