mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
31 lines
731 B
C#
31 lines
731 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace MediaBrowser.Controller.Entities.Movies
|
|
{
|
|
public class Movie : Video
|
|
{
|
|
public IEnumerable<Video> SpecialFeatures { get; set; }
|
|
|
|
/// <summary>
|
|
/// Finds an item by ID, recursively
|
|
/// </summary>
|
|
public override BaseItem FindItemById(Guid id)
|
|
{
|
|
var item = base.FindItemById(id);
|
|
|
|
if (item != null)
|
|
{
|
|
return item;
|
|
}
|
|
|
|
if (SpecialFeatures != null)
|
|
{
|
|
return SpecialFeatures.FirstOrDefault(i => i.Id == id);
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|