SubtitleSearchRequest.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Collections.Generic;
  5. using MediaBrowser.Controller.Providers;
  6. using MediaBrowser.Model.Entities;
  7. namespace MediaBrowser.Controller.Subtitles
  8. {
  9. public class SubtitleSearchRequest : IHasProviderIds
  10. {
  11. public string Language { get; set; }
  12. public string TwoLetterISOLanguageName { get; set; }
  13. public VideoContentType ContentType { get; set; }
  14. public string MediaPath { get; set; }
  15. public string SeriesName { get; set; }
  16. public string Name { get; set; }
  17. public int? IndexNumber { get; set; }
  18. public int? IndexNumberEnd { get; set; }
  19. public int? ParentIndexNumber { get; set; }
  20. public int? ProductionYear { get; set; }
  21. public long? RuntimeTicks { get; set; }
  22. public bool IsPerfectMatch { get; set; }
  23. public Dictionary<string, string> ProviderIds { get; set; }
  24. public bool SearchAllProviders { get; set; }
  25. public string[] DisabledSubtitleFetchers { get; set; }
  26. public string[] SubtitleFetcherOrder { get; set; }
  27. public SubtitleSearchRequest()
  28. {
  29. SearchAllProviders = true;
  30. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  31. DisabledSubtitleFetchers = Array.Empty<string>();
  32. SubtitleFetcherOrder = Array.Empty<string>();
  33. }
  34. }
  35. }