From 4279ed529d625b0d5265a90932fbdc10fce42830 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 4 May 2013 00:38:38 -0400 Subject: [PATCH] improved item by name displays --- MediaBrowser.Api/UserLibrary/PersonsService.cs | 2 +- MediaBrowser.Model/Dto/ItemByNameCounts.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MediaBrowser.Api/UserLibrary/PersonsService.cs b/MediaBrowser.Api/UserLibrary/PersonsService.cs index ee16a986e2..837e56384d 100644 --- a/MediaBrowser.Api/UserLibrary/PersonsService.cs +++ b/MediaBrowser.Api/UserLibrary/PersonsService.cs @@ -163,7 +163,7 @@ namespace MediaBrowser.Api.UserLibrary AlbumCount = items.OfType().Count(), - EpisodeGuestStarCount = items.OfType().Count(i => i.People.Any(p => string.Equals(p.Name, request.Name, StringComparison.OrdinalIgnoreCase) && string.Equals(p.Type, PersonType.GuestStar))) + EpisodeCount = items.OfType().Count() }; return ToOptimizedResult(counts); diff --git a/MediaBrowser.Model/Dto/ItemByNameCounts.cs b/MediaBrowser.Model/Dto/ItemByNameCounts.cs index b650eb5661..ec8e0e95f9 100644 --- a/MediaBrowser.Model/Dto/ItemByNameCounts.cs +++ b/MediaBrowser.Model/Dto/ItemByNameCounts.cs @@ -22,10 +22,10 @@ namespace MediaBrowser.Model.Dto /// The series count. public int SeriesCount { get; set; } /// - /// Gets or sets the episode guest star count. + /// Gets or sets the episode count. /// - /// The episode guest star count. - public int EpisodeGuestStarCount { get; set; } + /// The episode count. + public int EpisodeCount { get; set; } /// /// Gets or sets the game count. ///