mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
22 lines
625 B
C#
22 lines
625 B
C#
using System.Collections.Generic;
|
|
using MediaBrowser.Controller;
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
namespace MediaBrowser.Api.HttpHandlers
|
|
{
|
|
/// <summary>
|
|
/// Gets all items within a Genre
|
|
/// </summary>
|
|
public class ItemsWithGenreHandler : ItemListHandler
|
|
{
|
|
protected override IEnumerable<BaseItem> ItemsToSerialize
|
|
{
|
|
get
|
|
{
|
|
Folder parent = ApiService.GetItemById(QueryString["id"]) as Folder;
|
|
|
|
return Kernel.Instance.GetItemsWithGenre(parent, QueryString["name"], UserId);
|
|
}
|
|
}
|
|
}
|
|
}
|