diff options
Diffstat (limited to 'src/Jellyfin.LiveTv/Guide/GuideManager.cs')
| -rw-r--r-- | src/Jellyfin.LiveTv/Guide/GuideManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Jellyfin.LiveTv/Guide/GuideManager.cs b/src/Jellyfin.LiveTv/Guide/GuideManager.cs index ae0fdb07a..18831aa4e 100644 --- a/src/Jellyfin.LiveTv/Guide/GuideManager.cs +++ b/src/Jellyfin.LiveTv/Guide/GuideManager.cs @@ -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; } |
