get music artist genres from albums

pull/702/head
Luke Pulverenti 12 years ago
parent c60bd7d58e
commit ed0b7a09a2

@ -1,4 +1,7 @@

using System;
using System.Linq;
using System.Collections.Generic;
namespace MediaBrowser.Controller.Entities.Audio
{
/// <summary>
@ -6,5 +9,19 @@ namespace MediaBrowser.Controller.Entities.Audio
/// </summary>
public class MusicArtist : Folder
{
public override List<string> Genres
{
get
{
return Children
.SelectMany(i => i.Genres)
.Distinct(StringComparer.OrdinalIgnoreCase)
.ToList();
}
set
{
base.Genres = value;
}
}
}
}

Loading…
Cancel
Save