Update Jellyfin.Data/DayOfWeekHelper.cs

This commit is contained in:
Claus Vium 2023-02-09 08:50:44 +01:00 committed by cvium
parent 209edd38a4
commit a4c3011ee8

View File

@ -23,7 +23,7 @@ namespace Jellyfin.Data
return dynamicDayOfWeek switch
{
DynamicDayOfWeek.Everyday => true,
DynamicDayOfWeek.Weekday => dayOfWeek is > DayOfWeek.Sunday and <= DayOfWeek.Friday,
DynamicDayOfWeek.Weekday => dayOfWeek is >= DayOfWeek.Monday and <= DayOfWeek.Friday,
DynamicDayOfWeek.Weekend => dayOfWeek is DayOfWeek.Saturday or DayOfWeek.Sunday,
_ => (DayOfWeek)dynamicDayOfWeek == dayOfWeek
};