The Free Software Media System - Server Backend & API
improved item by name displays
Luke Pulverenti4279ed529d62
diff --git a/MediaBrowser.Api/UserLibrary/PersonsService.cs b/MediaBrowser.Api/UserLibrary/PersonsService.csindex ee16a986e2..837e56384d 100644--- a/MediaBrowser.Api/UserLibrary/PersonsService.cs+++ b/MediaBrowser.Api/UserLibrary/PersonsService.cs@@ -163,7 +163,7 @@ namespace MediaBrowser.Api.UserLibraryAlbumCount = items.OfType<MusicAlbum>().Count(),- EpisodeGuestStarCount = items.OfType<Episode>().Count(i => i.People.Any(p => string.Equals(p.Name, request.Name, StringComparison.OrdinalIgnoreCase) && string.Equals(p.Type, PersonType.GuestStar)))+ EpisodeCount = items.OfType<Episode>().Count()};return ToOptimizedResult(counts);diff --git a/MediaBrowser.Model/Dto/ItemByNameCounts.cs b/MediaBrowser.Model/Dto/ItemByNameCounts.csindex b650eb5661..ec8e0e95f9 100644--- a/MediaBrowser.Model/Dto/ItemByNameCounts.cs+++ b/MediaBrowser.Model/Dto/ItemByNameCounts.cs@@ -22,10 +22,10 @@ namespace MediaBrowser.Model.Dto/// <value>The series count.</value>public int SeriesCount { get; set; }/// <summary>- /// Gets or sets the episode guest star count.+ /// Gets or sets the episode count./// </summary>- /// <value>The episode guest star count.</value>- public int EpisodeGuestStarCount { get; set; }+ /// <value>The episode count.</value>+ public int EpisodeCount { get; set; }/// <summary>/// Gets or sets the game count./// </summary>