mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-08 00:39:25 +01:00
Moved TV into the main project and added Series properties to DTOBaseItem
This commit is contained in:
parent
2884df296c
commit
8b39ed2f63
@@ -157,7 +157,7 @@ namespace MediaBrowser.Model.DTO
|
||||
public VideoInfo VideoInfo { get; set; }
|
||||
|
||||
[ProtoMember(44)]
|
||||
public VideoInfo SeriesInfo { get; set; }
|
||||
public SeriesInfo SeriesInfo { get; set; }
|
||||
|
||||
[ProtoMember(45)]
|
||||
public bool IsNew { get; set; }
|
||||
|
||||
7
MediaBrowser.Model/Entities/TV/Episode.cs
Normal file
7
MediaBrowser.Model/Entities/TV/Episode.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Model.Entities.TV
|
||||
{
|
||||
public class Episode : Video
|
||||
{
|
||||
}
|
||||
}
|
||||
28
MediaBrowser.Model/Entities/TV/Season.cs
Normal file
28
MediaBrowser.Model/Entities/TV/Season.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Entities.TV
|
||||
{
|
||||
public class Season : Folder
|
||||
{
|
||||
/// <summary>
|
||||
/// Store these to reduce disk access in Episode Resolver
|
||||
/// </summary>
|
||||
public string[] MetadataFiles { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines if the metafolder contains a given file
|
||||
/// </summary>
|
||||
public bool ContainsMetadataFile(string file)
|
||||
{
|
||||
for (int i = 0; i < MetadataFiles.Length; i++)
|
||||
{
|
||||
if (MetadataFiles[i].Equals(file, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
MediaBrowser.Model/Entities/TV/Series.cs
Normal file
12
MediaBrowser.Model/Entities/TV/Series.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Entities.TV
|
||||
{
|
||||
public class Series : Folder
|
||||
{
|
||||
public string Status { get; set; }
|
||||
public IEnumerable<DayOfWeek> AirDays { get; set; }
|
||||
public string AirTime { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -54,6 +54,9 @@
|
||||
<Compile Include="Entities\Movies\Movie.cs" />
|
||||
<Compile Include="Entities\Person.cs" />
|
||||
<Compile Include="Entities\Studio.cs" />
|
||||
<Compile Include="Entities\TV\Episode.cs" />
|
||||
<Compile Include="Entities\TV\Season.cs" />
|
||||
<Compile Include="Entities\TV\Series.cs" />
|
||||
<Compile Include="Entities\Video.cs" />
|
||||
<Compile Include="Entities\Year.cs" />
|
||||
<Compile Include="Plugins\BasePluginConfiguration.cs" />
|
||||
|
||||
Reference in New Issue
Block a user