Fix Transcode Cleanup Schedule
Sets the default time to midnight, and confirms to the same task scheduling commands that other tasks use.
This commit is contained in:
parent
2a575dd67e
commit
e77040a4fb
|
@ -41,7 +41,13 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
|
||||||
/// Creates the triggers that define when the task will run.
|
/// Creates the triggers that define when the task will run.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>IEnumerable{BaseTaskTrigger}.</returns>
|
/// <returns>IEnumerable{BaseTaskTrigger}.</returns>
|
||||||
public IEnumerable<TaskTriggerInfo> GetDefaultTriggers() => new List<TaskTriggerInfo>();
|
public IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
|
||||||
|
{
|
||||||
|
return new[]
|
||||||
|
{
|
||||||
|
new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerDaily, TimeOfDayTicks = TimeSpan.FromHours(0).Ticks}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the task to be executed.
|
/// Returns the task to be executed.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user