mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
fixes #520 - Support multiple artists per audio track
This commit is contained in:
@@ -181,20 +181,17 @@ namespace MediaBrowser.Api.UserLibrary
|
||||
|
||||
return itemsList
|
||||
.SelectMany(i =>
|
||||
{
|
||||
var list = new List<string>();
|
||||
|
||||
if (!string.IsNullOrEmpty(i.AlbumArtist))
|
||||
{
|
||||
var list = new List<string>();
|
||||
list.Add(i.AlbumArtist);
|
||||
}
|
||||
list.AddRange(i.Artists);
|
||||
|
||||
if (!string.IsNullOrEmpty(i.AlbumArtist))
|
||||
{
|
||||
list.Add(i.AlbumArtist);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(i.Artist))
|
||||
{
|
||||
list.Add(i.Artist);
|
||||
}
|
||||
|
||||
return list;
|
||||
})
|
||||
return list;
|
||||
})
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.Select(name => new IbnStub<Artist>(name, () => itemsList.Where(i => i.HasArtist(name)), GetEntity));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user