jellyfin-server/MediaBrowser.Controller/Entities/Audio/MusicArtist.cs
2013-08-03 09:24:23 -04:00

29 lines
642 B
C#

using System;
using System.Linq;
using System.Collections.Generic;
namespace MediaBrowser.Controller.Entities.Audio
{
/// <summary>
/// Class MusicArtist
/// </summary>
public class MusicArtist : Folder
{
public override List<string> Genres
{
get
{
return Children
.OfType<MusicAlbum>()
.SelectMany(i => i.Genres)
.Distinct(StringComparer.OrdinalIgnoreCase)
.ToList();
}
set
{
base.Genres = value;
}
}
}
}