From ac52bf09527fdf3265ae3e8a816af982c6524009 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 3 Jan 2024 09:16:21 +0530 Subject: [PATCH] Update yt_dlp/YoutubeDL.py --- yt_dlp/YoutubeDL.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 8ac93fecc..6d30d223e 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1753,9 +1753,8 @@ def fix_deprecated_fields(self, ie_result): '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: