SubtitleSearchRequest.cs 1.4 KB

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