jellyfin/MediaBrowser.Controller/Entities/Movies/Movie.cs

32 lines
731 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
2012-07-11 23:55:27 -07:00
namespace MediaBrowser.Controller.Entities.Movies
2012-07-11 23:55:27 -07:00
{
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;
}
2012-07-11 23:55:27 -07:00
}
}