diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-04 00:38:38 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-04 00:38:38 -0400 |
| commit | 4279ed529d625b0d5265a90932fbdc10fce42830 (patch) | |
| tree | a023efeb4f40a8be77be1f55e033172cf777ca8b | |
| parent | f80c827d7592d0ec69e08d995371c51f9f3c331a (diff) | |
improved item by name displays
| -rw-r--r-- | MediaBrowser.Api/UserLibrary/PersonsService.cs | 2 | ||||
| -rw-r--r-- | 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<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.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 /// <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> |
