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 @@ class YoutubeDL:
'genre': 'genre_list',
}
for deprecated_field, new_field in deprecated_multivalue_fields.items():
if deprecated_field not in ie_result:
continue
ie_result[new_field] = re.split(r', ?', ie_result[deprecated_field])
if ie_result.get(deprecated_field):
ie_result[new_field] = re.split(r', ?', ie_result[deprecated_field])
def add_default_extra_info(self, ie_result, ie, url):
if url is not None: