mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 23:08:42 +01:00
Moved Movies into the main project
This commit is contained in:
parent
1fc7f8bd2d
commit
2884df296c
7
MediaBrowser.Model/Entities/Movies/BoxSet.cs
Normal file
7
MediaBrowser.Model/Entities/Movies/BoxSet.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Model.Entities.Movies
|
||||
{
|
||||
public class BoxSet : Folder
|
||||
{
|
||||
}
|
||||
}
|
||||
31
MediaBrowser.Model/Entities/Movies/Movie.cs
Normal file
31
MediaBrowser.Model/Entities/Movies/Movie.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user