aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ScheduledTasksController.cs
diff options
context:
space:
mode:
authorStan <stanislav.ionascu@gmail.com>2020-10-28 13:18:05 +0100
committerGitHub <noreply@github.com>2020-10-28 13:18:05 +0100
commit3bb8884e164857af01909d0f414f55ecf2a4f1e0 (patch)
treef03482a03d8523a17c36d74006bea35a8c7141d1 /Jellyfin.Api/Controllers/ScheduledTasksController.cs
parentcd4641dca02bae552cc7ea1942b0efbd4b791bcb (diff)
parentbe2f27a0695e5f3102f79a2e246e971682cff603 (diff)
Merge branch 'master' into bdiso-playback
Diffstat (limited to 'Jellyfin.Api/Controllers/ScheduledTasksController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ScheduledTasksController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/ScheduledTasksController.cs b/Jellyfin.Api/Controllers/ScheduledTasksController.cs
index ab7920895..68e4f0586 100644
--- a/Jellyfin.Api/Controllers/ScheduledTasksController.cs
+++ b/Jellyfin.Api/Controllers/ScheduledTasksController.cs
@@ -36,7 +36,7 @@ namespace Jellyfin.Api.Controllers
/// <returns>The list of scheduled tasks.</returns>
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
- public IEnumerable<IScheduledTaskWorker> GetTasks(
+ public IEnumerable<TaskInfo> GetTasks(
[FromQuery] bool? isHidden,
[FromQuery] bool? isEnabled)
{
@@ -57,7 +57,7 @@ namespace Jellyfin.Api.Controllers
}
}
- yield return task;
+ yield return ScheduledTaskHelpers.GetTaskInfo(task);
}
}