Fix Transcode Cleanup Schedule

Sets the default time to midnight, and confirms to the same task
scheduling commands that other tasks use.
pull/4275/head
Anthony Lavado 4 years ago
parent 2a575dd67e
commit e77040a4fb
No known key found for this signature in database
GPG Key ID: 5E2EBB4CDBCACB40

@ -41,7 +41,13 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
/// Creates the triggers that define when the task will run.
/// </summary>
/// <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>
/// Returns the task to be executed.

Loading…
Cancel
Save