mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
get music artist genres from albums
This commit is contained in:
parent
c60bd7d58e
commit
ed0b7a09a2
1 changed files with 18 additions and 1 deletions
|
@ -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…
Reference in a new issue