mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 21:38:27 +01:00
fixes #358 - Weather validation in Server configuration
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user