mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
Implemented some IBN functionality - GetPerson, GetYear, GetStudio, GetGenre
This commit is contained in:
parent
e2fe4174da
commit
ee1fa6e816
20
MediaBrowser.Api/HttpHandlers/YearsHandler.cs
Normal file
20
MediaBrowser.Api/HttpHandlers/YearsHandler.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
public class YearsHandler : JsonHandler
|
||||
{
|
||||
protected override object ObjectToSerialize
|
||||
{
|
||||
get
|
||||
{
|
||||
Folder parent = ApiService.GetItemById(QueryString["id"]) as Folder;
|
||||
Guid userId = Guid.Parse(QueryString["userid"]);
|
||||
|
||||
return Kernel.Instance.GetAllYears(parent, userId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user