1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-28 01:18:30 +00:00

perf: default=->or to avoid creating useless lists

This commit is contained in:
DarkCat09 2025-04-07 13:19:30 +04:00
parent 44ed9058e9
commit 70e0c591be
No known key found for this signature in database

View File

@ -814,7 +814,7 @@ def _parse_track_meta(self, meta, track_id=None):
# ['Main Artist', 'Feat. Artist']
'artists': traverse_obj(
(*meta[17], *meta[18]) if len_ >= 18 else None,
(..., 'name'), default=[artist]),
(..., 'name')) or [artist],
'duration': int_or_none(meta[5]) if len_ >= 5 else None,
'thumbnails': [{'url': thumbnail}] if thumbnail else [],