2012-08-21 01:51:00 +00:00
|
|
|
|
using System;
|
2012-07-12 06:55:27 +00:00
|
|
|
|
|
2012-09-11 01:34:02 +00:00
|
|
|
|
namespace MediaBrowser.Controller.Entities.TV
|
2012-07-12 06:55:27 +00:00
|
|
|
|
{
|
|
|
|
|
public class Season : Folder
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Store these to reduce disk access in Episode Resolver
|
|
|
|
|
/// </summary>
|
2012-09-19 14:22:53 +00:00
|
|
|
|
public string[] MetadataFiles
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ResolveArgs.MetadataFiles ?? new string[] { };
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-08-21 01:51:00 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines if the metafolder contains a given file
|
|
|
|
|
/// </summary>
|
2012-09-08 19:05:18 +00:00
|
|
|
|
public bool ContainsMetadataFile(string file)
|
2012-08-21 01:51:00 +00:00
|
|
|
|
{
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|