diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-02 10:08:30 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-02 10:08:30 -0400 |
| commit | e24d7676fed0a891ec3280e3f7103a0712cc60b2 (patch) | |
| tree | 9ff53b647e1776c4f4415c99ee072f15f5063f3a /MediaBrowser.Api/LibraryService.cs | |
| parent | 26ccfa9b0f4128270cb4afee597c206e9d868904 (diff) | |
add more data to item counts
Diffstat (limited to 'MediaBrowser.Api/LibraryService.cs')
| -rw-r--r-- | MediaBrowser.Api/LibraryService.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.Api/LibraryService.cs b/MediaBrowser.Api/LibraryService.cs index c885a3981..0f15124a5 100644 --- a/MediaBrowser.Api/LibraryService.cs +++ b/MediaBrowser.Api/LibraryService.cs @@ -320,13 +320,17 @@ namespace MediaBrowser.Api AlbumCount = items.OfType<MusicAlbum>().Count(), EpisodeCount = items.OfType<Episode>().Count(), GameCount = items.OfType<Game>().Count(), + GameSystemCount = items.OfType<GameSystem>().Count(), MovieCount = items.OfType<Movie>().Count(), SeriesCount = items.OfType<Series>().Count(), SongCount = items.OfType<Audio>().Count(), TrailerCount = items.OfType<Trailer>().Count(), MusicVideoCount = items.OfType<MusicVideo>().Count(), AdultVideoCount = items.OfType<AdultVideo>().Count(), - BoxSetCount = items.OfType<BoxSet>().Count() + BoxSetCount = items.OfType<BoxSet>().Count(), + BookCount = items.OfType<Book>().Count(), + + UniqueTypes = items.Select(i => i.GetType().Name).Distinct().ToList() }; return ToOptimizedResult(counts); |
