mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
Artists, not artist
This commit is contained in:
@@ -243,7 +243,15 @@ public class JellyfinResponseBuilder
|
||||
["AlbumId"] = song.AlbumId ?? song.Id,
|
||||
["AlbumArtist"] = song.AlbumArtist ?? song.Artist,
|
||||
["Artists"] = song.Artists.Count > 0 ? song.Artists.ToArray() : new[] { song.Artist },
|
||||
["ArtistItems"] = new[]
|
||||
["ArtistItems"] = song.Artists.Count > 0
|
||||
? song.Artists.Select((name, index) => new Dictionary<string, object?>
|
||||
{
|
||||
["Name"] = name,
|
||||
["Id"] = index == 0 && song.ArtistId != null
|
||||
? song.ArtistId
|
||||
: $"{song.Id}-artist-{index}"
|
||||
}).ToArray()
|
||||
: new[]
|
||||
{
|
||||
new Dictionary<string, object?>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user