diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-05-07 13:47:41 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-05-07 13:47:41 -0400 |
| commit | 6adc668bed55948b89ee6adcc379cce7253da82c (patch) | |
| tree | fbe7ed9c440f4ef4cc1e4c373232b00dfbe20380 /MediaBrowser.Controller/Entities/Genre.cs | |
| parent | d04b39421e54952241f9a3460a87413923cceb3a (diff) | |
update icons
Diffstat (limited to 'MediaBrowser.Controller/Entities/Genre.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Genre.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Genre.cs b/MediaBrowser.Controller/Entities/Genre.cs index fa890ad9e..c87d4daaf 100644 --- a/MediaBrowser.Controller/Entities/Genre.cs +++ b/MediaBrowser.Controller/Entities/Genre.cs @@ -66,6 +66,14 @@ namespace MediaBrowser.Controller.Entities return i => !(i is Game) && !(i is IHasMusicGenres) && i.Genres.Contains(Name, StringComparer.OrdinalIgnoreCase); } + public IEnumerable<BaseItem> GetTaggedItems(InternalItemsQuery query) + { + query.Genres = new[] { Name }; + query.ExcludeItemTypes = new[] { typeof(Game).Name, typeof(MusicVideo).Name, typeof(Audio.Audio).Name, typeof(MusicAlbum).Name, typeof(MusicArtist).Name }; + + return LibraryManager.GetItemList(query); + } + [IgnoreDataMember] public override bool SupportsPeople { |
