jellyfin/MediaBrowser.Controller/Entities/TV/Season.cs

35 lines
883 B
C#
Raw Normal View History

using System;
2012-07-12 06:55:27 +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>
public string[] MetadataFiles
{
get
{
return ResolveArgs.MetadataFiles ?? new string[] { };
}
}
/// <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;
}
2012-07-12 06:55:27 +00:00
}
}