The Free Software Media System - Server Backend & API
Move TimerInfo start time logic out of RecordingHelper
Patrick Barron3b341c06db66
diff --git a/src/Jellyfin.LiveTv/Recordings/RecordingHelper.cs b/src/Jellyfin.LiveTv/Recordings/RecordingHelper.csindex 1c8e2960be..2b75640451 100644--- a/src/Jellyfin.LiveTv/Recordings/RecordingHelper.cs+++ b/src/Jellyfin.LiveTv/Recordings/RecordingHelper.cs@@ -7,11 +7,6 @@ namespace Jellyfin.LiveTv.Recordings{internal static class RecordingHelper{- public static DateTime GetStartTime(TimerInfo timer)- {- return timer.StartDate.AddSeconds(-timer.PrePaddingSeconds);- }-public static string GetRecordingName(TimerInfo info){var name = info.Name;diff --git a/src/Jellyfin.LiveTv/Timers/TimerManager.cs b/src/Jellyfin.LiveTv/Timers/TimerManager.csindex 2e5003a537..da5deea36a 100644--- a/src/Jellyfin.LiveTv/Timers/TimerManager.cs+++ b/src/Jellyfin.LiveTv/Timers/TimerManager.cs@@ -95,7 +95,7 @@ namespace Jellyfin.LiveTv.Timersreturn;}- var startDate = RecordingHelper.GetStartTime(item);+ var startDate = item.StartDate.AddSeconds(-item.PrePaddingSeconds);var now = DateTime.UtcNow;if (startDate < now)