SubtitleSearchRequest.cs 1.4 KB

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