2012-08-21 03:51:00 +02:00
|
|
|
|
using System;
|
2012-07-12 08:55:27 +02:00
|
|
|
|
|
2012-09-11 03:34:02 +02:00
|
|
|
|
namespace MediaBrowser.Controller.Entities.TV
|
2012-07-12 08:55:27 +02:00
|
|
|
|
{
|
|
|
|
|
public class Season : Folder
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Store these to reduce disk access in Episode Resolver
|
|
|
|
|
/// </summary>
|
2012-09-19 16:22:53 +02:00
|
|
|
|
public string[] MetadataFiles
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ResolveArgs.MetadataFiles ?? new string[] { };
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-08-21 03:51:00 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines if the metafolder contains a given file
|
|
|
|
|
/// </summary>
|
2012-09-08 21:05:18 +02:00
|
|
|
|
public bool ContainsMetadataFile(string file)
|
2012-08-21 03:51:00 +02:00
|
|
|
|
{
|
|
|
|
|
for (int i = 0; i < MetadataFiles.Length; i++)
|
|
|
|
|
{
|
|
|
|
|
if (MetadataFiles[i].Equals(file, StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2012-07-12 08:55:27 +02:00
|
|
|
|
}
|
|
|
|
|
}
|