fix: incorrect artist for an album in labels

This commit is contained in:
Maksym 2025-06-29 03:23:01 +02:00
parent fd7b4acf0f
commit a892d64dba

View File

@ -145,7 +145,7 @@ export default class DiscographyParser {
else continue; else continue;
itemRef.type = url.pathname.startsWith("/track/") ? "track" : "album"; itemRef.type = url.pathname.startsWith("/track/") ? "track" : "album";
itemRef.name = item.title; itemRef.name = item.title;
itemRef.artist = { name: defaultArtistName }; itemRef.artist = { name: item.artist ?? defaultArtistName };
itemRef.imageUrl = reformatImageUrl( itemRef.imageUrl = reformatImageUrl(
`https://f4.bcbits.com/img/a${item["art_id"]}_10.jpg`, `https://f4.bcbits.com/img/a${item["art_id"]}_10.jpg`,
opts.imageFormat opts.imageFormat