jellyfin-server/MediaBrowser.Model/Entities/Movies/Movie.cs
LukePulverenti Luke Pulverenti luke pulverenti 2884df296c Moved Movies into the main project
2012-09-08 14:37:55 -04:00

32 lines
726 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
namespace MediaBrowser.Model.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;
}
}
}