diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-10-17 16:19:57 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-10-17 16:19:57 +0200 |
| commit | 49569ca0a0bf5534301e4e51bc263c73cc275a73 (patch) | |
| tree | 90c14c11a2761d60cf6800cffd24c062cec9b680 /MediaBrowser.Controller/Entities/Genre.cs | |
| parent | 51dd3f1e19c3ed77e2bba2aaecdd743ee627bd09 (diff) | |
Use nameof where possible
Diffstat (limited to 'MediaBrowser.Controller/Entities/Genre.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Genre.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/Genre.cs b/MediaBrowser.Controller/Entities/Genre.cs index db6c85caf..74289e50f 100644 --- a/MediaBrowser.Controller/Entities/Genre.cs +++ b/MediaBrowser.Controller/Entities/Genre.cs @@ -59,7 +59,13 @@ namespace MediaBrowser.Controller.Entities public IList<BaseItem> GetTaggedItems(InternalItemsQuery query) { query.GenreIds = new[] { Id }; - query.ExcludeItemTypes = new[] { typeof(MusicVideo).Name, typeof(Audio.Audio).Name, typeof(MusicAlbum).Name, typeof(MusicArtist).Name }; + query.ExcludeItemTypes = new[] + { + nameof(MusicVideo), + nameof(Audio.Audio), + nameof(MusicAlbum), + nameof(MusicArtist) + }; return LibraryManager.GetItemList(query); } |
