fix music videos missing from artists page

This commit is contained in:
Luke Pulverenti 2014-04-06 22:51:52 -04:00
parent 56c0d491f4
commit df84a2bdc3
2 changed files with 18 additions and 0 deletions

View file

@ -111,6 +111,7 @@ namespace MediaBrowser.Api.UserLibrary
{
return items
.OfType<IHasArtist>()
.Where(i => !(i is MusicAlbum))
.SelectMany(i => i.AllArtists)
.Distinct(StringComparer.OrdinalIgnoreCase)
.Select(name =>

View file

@ -31,6 +31,23 @@ namespace MediaBrowser.Controller.Entities.Audio
}
}
[IgnoreDataMember]
public List<string> AllArtists
{
get
{
var list = new List<string>();
if (!string.IsNullOrEmpty(AlbumArtist))
{
list.Add(AlbumArtist);
}
list.AddRange(Artists);
return list;
}
}
/// <summary>
/// Gets or sets the tags.
/// </summary>