Season.cs 752 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. namespace MediaBrowser.Model.Entities.TV
  3. {
  4. public class Season : Folder
  5. {
  6. /// <summary>
  7. /// Store these to reduce disk access in Episode Resolver
  8. /// </summary>
  9. public string[] MetadataFiles { get; set; }
  10. /// <summary>
  11. /// Determines if the metafolder contains a given file
  12. /// </summary>
  13. public bool ContainsMetadataFile(string file)
  14. {
  15. for (int i = 0; i < MetadataFiles.Length; i++)
  16. {
  17. if (MetadataFiles[i].Equals(file, StringComparison.OrdinalIgnoreCase))
  18. {
  19. return true;
  20. }
  21. }
  22. return false;
  23. }
  24. }
  25. }