fixes #358 - Weather validation in Server configuration

This commit is contained in:
Luke Pulverenti
2013-06-23 11:02:53 -04:00
parent 0acc257354
commit 189618a751
24 changed files with 15 additions and 685 deletions

View File

@@ -514,15 +514,20 @@ namespace MediaBrowser.Controller.Dto
}
}
var game = item as BaseGame;
var game = item as Game;
if (game != null)
{
dto.Players = game.PlayersSupported;
dto.GameSystem = game.GameSystem;
SetGameProperties(dto, game);
}
}
private void SetGameProperties(BaseItemDto dto, Game item)
{
dto.Players = item.PlayersSupported;
dto.GameSystem = item.GameSystem;
}
/// <summary>
/// Since it can be slow to make all of these calculations independently, this method will provide a way to do them all at once
/// </summary>