diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-22 18:42:21 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-22 18:42:21 -0400 |
| commit | 831c412ecf8ad5e259f1293ed4655b3a1b2997db (patch) | |
| tree | edb927faa4c9baf69f20da5f4af5a02af16b5e50 /MediaBrowser.Api/GamesService.cs | |
| parent | 02b34c6393b7cbff9085042f5b1f8e08c38c398e (diff) | |
Added IsInstalledOnClient to Game
Diffstat (limited to 'MediaBrowser.Api/GamesService.cs')
| -rw-r--r-- | MediaBrowser.Api/GamesService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Api/GamesService.cs b/MediaBrowser.Api/GamesService.cs index a34f68f35..14f5ba3da 100644 --- a/MediaBrowser.Api/GamesService.cs +++ b/MediaBrowser.Api/GamesService.cs @@ -118,9 +118,11 @@ namespace MediaBrowser.Api var games = items.OfType<Game>().ToList(); + summary.ClientInstalledGameCount = games.Count(i => !i.IsInstalledOnClient); + summary.GameCount = games.Count; - summary.GameFileExtensions = games.Select(i => Path.GetExtension(i.Path)) + summary.GameFileExtensions = games.Where(i => !i.IsInstalledOnClient).Select(i => Path.GetExtension(i.Path)) .Distinct(StringComparer.OrdinalIgnoreCase) .ToList(); |
