SubtitleSearchRequest.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 SubtitleSearchRequest()
  12. {
  13. SearchAllProviders = true;
  14. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  15. DisabledSubtitleFetchers = Array.Empty<string>();
  16. SubtitleFetcherOrder = Array.Empty<string>();
  17. }
  18. public string Language { get; set; }
  19. public string TwoLetterISOLanguageName { get; set; }
  20. public VideoContentType ContentType { get; set; }
  21. public string MediaPath { get; set; }
  22. public string SeriesName { get; set; }
  23. public string Name { get; set; }
  24. public int? IndexNumber { get; set; }
  25. public int? IndexNumberEnd { get; set; }
  26. public int? ParentIndexNumber { get; set; }
  27. public int? ProductionYear { get; set; }
  28. public long? RuntimeTicks { get; set; }
  29. public bool IsPerfectMatch { get; set; }
  30. public Dictionary<string, string> ProviderIds { get; set; }
  31. public bool SearchAllProviders { get; set; }
  32. public string[] DisabledSubtitleFetchers { get; set; }
  33. public string[] SubtitleFetcherOrder { get; set; }
  34. public bool IsAutomated { get; set; }
  35. }
  36. }