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:
Anthony Lavado 2020-10-05 00:15:25 -04:00
parent 2a575dd67e
commit e77040a4fb
No known key found for this signature in database
GPG Key ID: 5E2EBB4CDBCACB40

View File

@ -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.