mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-23 18:44:45 +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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -50,6 +50,8 @@
|
||||
<Compile Include="Entities\IHasProviderIds.cs" />
|
||||
<Compile Include="Entities\ItemSpecialCounts.cs" />
|
||||
<Compile Include="Entities\MetadataProviders.cs" />
|
||||
<Compile Include="Entities\Movies\BoxSet.cs" />
|
||||
<Compile Include="Entities\Movies\Movie.cs" />
|
||||
<Compile Include="Entities\Person.cs" />
|
||||
<Compile Include="Entities\Studio.cs" />
|
||||
<Compile Include="Entities\Video.cs" />
|
||||
|
||||
Reference in New Issue
Block a user