mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Move TimerInfo start time logic out of RecordingHelper
This commit is contained in:
parent
cac7ff84ca
commit
3b341c06db
@ -7,11 +7,6 @@ namespace Jellyfin.LiveTv.Recordings
|
|||||||
{
|
{
|
||||||
internal static class RecordingHelper
|
internal static class RecordingHelper
|
||||||
{
|
{
|
||||||
public static DateTime GetStartTime(TimerInfo timer)
|
|
||||||
{
|
|
||||||
return timer.StartDate.AddSeconds(-timer.PrePaddingSeconds);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetRecordingName(TimerInfo info)
|
public static string GetRecordingName(TimerInfo info)
|
||||||
{
|
{
|
||||||
var name = info.Name;
|
var name = info.Name;
|
||||||
|
@ -95,7 +95,7 @@ namespace Jellyfin.LiveTv.Timers
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var startDate = RecordingHelper.GetStartTime(item);
|
var startDate = item.StartDate.AddSeconds(-item.PrePaddingSeconds);
|
||||||
var now = DateTime.UtcNow;
|
var now = DateTime.UtcNow;
|
||||||
|
|
||||||
if (startDate < now)
|
if (startDate < now)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user