2012-08-21 01:51:00 +00:00
|
|
|
|
using System;
|
2012-07-15 20:27:07 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2012-07-12 06:55:27 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.TV.Entities
|
|
|
|
|
{
|
|
|
|
|
public class Season : Folder
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Store these to reduce disk access in Episode Resolver
|
|
|
|
|
/// </summary>
|
2012-08-21 01:51:00 +00:00
|
|
|
|
internal string[] MetadataFiles { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines if the metafolder contains a given file
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal bool ContainsMetadataFile(string file)
|
|
|
|
|
{
|
|
|
|
|
for (int i = 0; i < MetadataFiles.Length; i++)
|
|
|
|
|
{
|
|
|
|
|
if (MetadataFiles[i].Equals(file, StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2012-07-12 06:55:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|