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. ///