mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-27 17:08:32 +00:00
perf: default=
->or
to avoid creating useless lists
This commit is contained in:
parent
44ed9058e9
commit
70e0c591be
@ -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 [],
|
||||
|
Loading…
Reference in New Issue
Block a user