mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-30 20:38:27 +01:00
All calls to get items now require passing in a userId. Made the model project portable. Also filled in more api calls.
This commit is contained in:
parent
baedafbeb9
commit
6fbd5cf464
28
MediaBrowser.Api/HttpHandlers/StudioHandler.cs
Normal file
28
MediaBrowser.Api/HttpHandlers/StudioHandler.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets all items within containing a studio
|
||||
/// </summary>
|
||||
public class StudioHandler : ItemListHandler
|
||||
{
|
||||
public StudioHandler(RequestContext ctx)
|
||||
: base(ctx)
|
||||
{
|
||||
}
|
||||
|
||||
protected override IEnumerable<BaseItem> ItemsToSerialize
|
||||
{
|
||||
get
|
||||
{
|
||||
Folder parent = ApiService.GetItemById(QueryString["id"]) as Folder;
|
||||
|
||||
return Kernel.Instance.GetItemsWithStudio(parent, QueryString["name"], UserId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user