|
|
@ -41,17 +41,7 @@ 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()
|
|
|
|
public IEnumerable<TaskTriggerInfo> GetDefaultTriggers() => new List<TaskTriggerInfo>();
|
|
|
|
{
|
|
|
|
|
|
|
|
return new[]
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
new TaskTriggerInfo
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Type = TaskTriggerInfo.TriggerDaily,
|
|
|
|
|
|
|
|
TimeOfDayTicks = 0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Returns the task to be executed.
|
|
|
|
/// Returns the task to be executed.
|
|
|
@ -158,7 +148,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
|
|
|
|
public bool IsHidden => false;
|
|
|
|
public bool IsHidden => false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// <inheritdoc />
|
|
|
|
public bool IsEnabled => false;
|
|
|
|
public bool IsEnabled => true;
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// <inheritdoc />
|
|
|
|
public bool IsLogged => true;
|
|
|
|
public bool IsLogged => true;
|
|
|
|