Skip to content

Commit

Permalink
Merge pull request MediaBrowser#119 from crazybbs/master
Browse files Browse the repository at this point in the history
Update GameBrowser to return lists of Windows and DOS Games
  • Loading branch information
LukePulverenti authored Aug 16, 2016
2 parents 8a5b956 + 3cf9363 commit 447bdc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GameBrowser/Api/ServerApiEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public object Get(GetDosGames request)
_logger.Debug("GetDosGames request received");

var dosGames = _libraryManager.RootFolder.RecursiveChildren
.Where(i => i is Game && !string.IsNullOrEmpty(((Game)i).GameSystem) && ((Game)i).GameSystem.Equals("dos"))
.Where(i => i is Game && !string.IsNullOrEmpty(((Game)i).GameSystem) && ((Game)i).GameSystem.Equals("DOS"))
.OrderBy(i => i.SortName)
.ToList();

Expand All @@ -96,7 +96,7 @@ public object Get(GetWindowsGames request)
_logger.Debug("GetWindowsGames request received");

var windowsGames = _libraryManager.RootFolder.RecursiveChildren
.Where(i => i is Game && !string.IsNullOrEmpty(((Game)i).GameSystem) && ((Game)i).GameSystem.Equals("windows"))
.Where(i => i is Game && !string.IsNullOrEmpty(((Game)i).GameSystem) && ((Game)i).GameSystem.Equals("Windows"))
.OrderBy(i => i.SortName)
.ToList();

Expand Down

0 comments on commit 447bdc4

Please sign in to comment.