mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 01:13:15 +00:00
Update yt_dlp/YoutubeDL.py
This commit is contained in:
parent
d60ad19944
commit
ac52bf0952
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue