mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
29 lines
752 B
C#
29 lines
752 B
C#
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;
|
|
}
|
|
}
|
|
}
|