improved item by name displays

pull/702/head
Luke Pulverenti 12 years ago
parent f80c827d75
commit 4279ed529d

@ -163,7 +163,7 @@ namespace MediaBrowser.Api.UserLibrary
AlbumCount = items.OfType<MusicAlbum>().Count(), 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); return ToOptimizedResult(counts);

@ -22,10 +22,10 @@ namespace MediaBrowser.Model.Dto
/// <value>The series count.</value> /// <value>The series count.</value>
public int SeriesCount { get; set; } public int SeriesCount { get; set; }
/// <summary> /// <summary>
/// Gets or sets the episode guest star count. /// Gets or sets the episode count.
/// </summary> /// </summary>
/// <value>The episode guest star count.</value> /// <value>The episode count.</value>
public int EpisodeGuestStarCount { get; set; } public int EpisodeCount { get; set; }
/// <summary> /// <summary>
/// Gets or sets the game count. /// Gets or sets the game count.
/// </summary> /// </summary>

Loading…
Cancel
Save