aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/GenresService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-18 00:55:21 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-18 00:55:21 -0500
commit0f7f4674784ae76ddafc5b83ffd87add824a8191 (patch)
tree3e78445c7984028a706477b322f99a32bfe1af06 /MediaBrowser.Api/UserLibrary/GenresService.cs
parent0b57b33988ddd8a450aa22186580261dee914500 (diff)
center guide grid
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/GenresService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/GenresService.cs4
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));