mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
add channel downloading settings
This commit is contained in:
@@ -43,6 +43,11 @@ namespace MediaBrowser.Api
|
||||
public string Id { get; set; }
|
||||
}
|
||||
|
||||
[Route("/Channels/Features", "GET", Summary = "Gets features for a channel")]
|
||||
public class GetAllChannelFeatures : IReturn<List<ChannelFeatures>>
|
||||
{
|
||||
}
|
||||
|
||||
[Route("/Channels/{Id}/Items", "GET", Summary = "Gets channel items")]
|
||||
public class GetChannelItems : IReturn<QueryResult<BaseItemDto>>
|
||||
{
|
||||
@@ -108,6 +113,13 @@ namespace MediaBrowser.Api
|
||||
_channelManager = channelManager;
|
||||
}
|
||||
|
||||
public object Get(GetAllChannelFeatures request)
|
||||
{
|
||||
var result = _channelManager.GetAllChannelFeatures().ToList();
|
||||
|
||||
return ToOptimizedResult(result);
|
||||
}
|
||||
|
||||
public object Get(GetChannelFeatures request)
|
||||
{
|
||||
var result = _channelManager.GetChannelFeatures(request.Id);
|
||||
|
||||
Reference in New Issue
Block a user