mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Use Math.Clamp in GetGuideDays
This commit is contained in:
parent
4399b51dca
commit
502cbe77b2
@ -159,7 +159,7 @@ public class GuideManager : IGuideManager
|
||||
var config = _config.GetLiveTvConfiguration();
|
||||
|
||||
return config.GuideDays.HasValue
|
||||
? Math.Max(1, Math.Min(config.GuideDays.Value, MaxGuideDays))
|
||||
? Math.Clamp(config.GuideDays.Value, 1, MaxGuideDays)
|
||||
: 7;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user