diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-23 11:02:53 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-23 11:02:53 -0400 |
| commit | 189618a75159d604e425c9318984dc2d8a9cc3f9 (patch) | |
| tree | a87beed88f3f90679b6178641a8469f4129986d7 /MediaBrowser.Controller/Dto | |
| parent | 0acc25735419b051c6f57a2c08b2ad6f3a969b83 (diff) | |
fixes #358 - Weather validation in Server configuration
Diffstat (limited to 'MediaBrowser.Controller/Dto')
| -rw-r--r-- | MediaBrowser.Controller/Dto/DtoBuilder.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Dto/DtoBuilder.cs b/MediaBrowser.Controller/Dto/DtoBuilder.cs index 17a5995b8f..5868e34cd0 100644 --- a/MediaBrowser.Controller/Dto/DtoBuilder.cs +++ b/MediaBrowser.Controller/Dto/DtoBuilder.cs @@ -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> |
