mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 12:28:19 +02:00
28 lines
665 B
C#
28 lines
665 B
C#
using MediaBrowser.Controller.Chapters;
|
|
using ServiceStack;
|
|
using System.Linq;
|
|
|
|
namespace MediaBrowser.Api.Library
|
|
{
|
|
[Route("/Providers/Chapters", "GET")]
|
|
public class GetChapterProviders : IReturnVoid
|
|
{
|
|
}
|
|
|
|
public class ChapterService : BaseApiService
|
|
{
|
|
private readonly IChapterManager _chapterManager;
|
|
|
|
public ChapterService(IChapterManager chapterManager)
|
|
{
|
|
_chapterManager = chapterManager;
|
|
}
|
|
|
|
public object Get(GetChapterProviders request)
|
|
{
|
|
var result = _chapterManager.GetProviders().ToList();
|
|
|
|
return ToOptimizedResult(result);
|
|
}
|
|
}
|
|
}
|