Moved TV into the main project and added Series properties to DTOBaseItem

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-09-08 15:05:18 -04:00
parent 2884df296c
commit 8b39ed2f63
31 changed files with 126 additions and 341 deletions

View File

@@ -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; }

View File

@@ -0,0 +1,7 @@

namespace MediaBrowser.Model.Entities.TV
{
public class Episode : Video
{
}
}

View 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;
}
}
}

View 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; }
}
}

View File

@@ -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" />