Moved TV into the main project and added Series properties to DTOBaseItem
This commit is contained in:
parent
2884df296c
commit
8b39ed2f63
@@ -0,0 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Model.Entities.TV
|
||||
{
|
||||
public class Episode : Video
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user