diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-18 00:55:21 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-18 00:55:21 -0500 |
| commit | 0f7f4674784ae76ddafc5b83ffd87add824a8191 (patch) | |
| tree | 3e78445c7984028a706477b322f99a32bfe1af06 /MediaBrowser.Api/UserLibrary/GenresService.cs | |
| parent | 0b57b33988ddd8a450aa22186580261dee914500 (diff) | |
center guide grid
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/GenresService.cs')
| -rw-r--r-- | MediaBrowser.Api/UserLibrary/GenresService.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/MediaBrowser.Api/UserLibrary/GenresService.cs b/MediaBrowser.Api/UserLibrary/GenresService.cs index d1f7fab01..ded9544f8 100644 --- a/MediaBrowser.Api/UserLibrary/GenresService.cs +++ b/MediaBrowser.Api/UserLibrary/GenresService.cs @@ -107,9 +107,7 @@ namespace MediaBrowser.Api.UserLibrary /// <returns>IEnumerable{Tuple{System.StringFunc{System.Int32}}}.</returns> protected override IEnumerable<Genre> GetAllItems(GetItemsByName request, IEnumerable<BaseItem> items) { - var itemsList = items.Where(i => i.Genres != null).ToList(); - - return itemsList + return items .SelectMany(i => i.Genres) .Distinct(StringComparer.OrdinalIgnoreCase) .Select(name => LibraryManager.GetGenre(name)); |
