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

feat: "artist - album" but only for albums

This commit is contained in:
DarkCat09 2025-04-01 15:56:51 +04:00
parent 013cf4368f
commit cab6eeeae2
No known key found for this signature in database

View File

@ -815,7 +815,7 @@ class VKMusicIE(VKBaseIE):
'url': 'https://vk.com/artist/linkinpark/releases?z=audio_playlist-2000984503_984503%2Fc468f3a862b6f73b55', 'url': 'https://vk.com/artist/linkinpark/releases?z=audio_playlist-2000984503_984503%2Fc468f3a862b6f73b55',
'info_dict': { 'info_dict': {
'id': '-2000984503_984503', 'id': '-2000984503_984503',
'title': 'One More Light', 'title': 'Linkin Park - One More Light',
'description': '', 'description': '',
'album': 'One More Light', 'album': 'One More Light',
'uploader': 'Linkin Park', 'uploader': 'Linkin Park',
@ -990,7 +990,8 @@ def _real_extract(self, url):
is_album = year is not None is_album = year is not None
return self.playlist_result( return self.playlist_result(
entries, playlist_id, title, entries, playlist_id,
join_nonempty(artist, title, delim=' - ') if is_album else title,
unescapeHTML(meta.get('rawDescription')), unescapeHTML(meta.get('rawDescription')),
album=title if is_album else None, album=title if is_album else None,
uploader=artist, uploader=artist,