2012-08-24 14:09:28 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2012-07-12 06:55:27 +00:00
|
|
|
|
|
2012-09-11 01:34:02 +00:00
|
|
|
|
namespace MediaBrowser.Controller.Entities.Movies
|
2012-07-12 06:55:27 +00:00
|
|
|
|
{
|
|
|
|
|
public class Movie : Video
|
|
|
|
|
{
|
|
|
|
|
public IEnumerable<Video> SpecialFeatures { get; set; }
|
2012-08-24 14:09:28 +00:00
|
|
|
|
|
|
|
|
|
/// <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-12 06:55:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|