2013-05-29 01:44:12 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2013-02-21 01:33:05 +00:00
|
|
|
|
namespace MediaBrowser.Controller.Entities.Audio
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class MusicArtist
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MusicArtist : Folder
|
|
|
|
|
{
|
2013-05-29 01:44:12 +00:00
|
|
|
|
public override List<string> Genres
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Children
|
2013-08-03 13:24:23 +00:00
|
|
|
|
.OfType<MusicAlbum>()
|
|
|
|
|
.SelectMany(i => i.Genres)
|
|
|
|
|
.Distinct(StringComparer.OrdinalIgnoreCase)
|
|
|
|
|
.ToList();
|
2013-05-29 01:44:12 +00:00
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
base.Genres = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-02-21 01:33:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|