LiveTvOptions.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Model.LiveTv
  3. {
  4. public class LiveTvOptions
  5. {
  6. public int? GuideDays { get; set; }
  7. public bool EnableMovieProviders { get; set; }
  8. public string RecordingPath { get; set; }
  9. public bool EnableAutoOrganize { get; set; }
  10. public bool EnableRecordingEncoding { get; set; }
  11. public bool EnableOriginalAudioWithEncodedRecordings { get; set; }
  12. public List<TunerHostInfo> TunerHosts { get; set; }
  13. public List<ListingsProviderInfo> ListingProviders { get; set; }
  14. public int PrePaddingSeconds { get; set; }
  15. public int PostPaddingSeconds { get; set; }
  16. public LiveTvOptions()
  17. {
  18. EnableMovieProviders = true;
  19. TunerHosts = new List<TunerHostInfo>();
  20. ListingProviders = new List<ListingsProviderInfo>();
  21. }
  22. }
  23. public class TunerHostInfo
  24. {
  25. public string Id { get; set; }
  26. public string Url { get; set; }
  27. public string Type { get; set; }
  28. public string DeviceId { get; set; }
  29. public bool ImportFavoritesOnly { get; set; }
  30. public bool AllowHWTranscoding { get; set; }
  31. public bool IsEnabled { get; set; }
  32. public string M3UUrl { get; set; }
  33. public string InfoUrl { get; set; }
  34. public string FriendlyName { get; set; }
  35. public int Tuners { get; set; }
  36. public string DiseqC { get; set; }
  37. public string SourceA { get; set; }
  38. public string SourceB { get; set; }
  39. public string SourceC { get; set; }
  40. public string SourceD { get; set; }
  41. public int DataVersion { get; set; }
  42. public TunerHostInfo()
  43. {
  44. IsEnabled = true;
  45. AllowHWTranscoding = true;
  46. }
  47. }
  48. public class ListingsProviderInfo
  49. {
  50. public string Id { get; set; }
  51. public string Type { get; set; }
  52. public string Username { get; set; }
  53. public string Password { get; set; }
  54. public string ListingsId { get; set; }
  55. public string ZipCode { get; set; }
  56. public string Country { get; set; }
  57. public string Path { get; set; }
  58. public string[] EnabledTuners { get; set; }
  59. public bool EnableAllTuners { get; set; }
  60. public ListingsProviderInfo()
  61. {
  62. EnabledTuners = new string[] { };
  63. EnableAllTuners = true;
  64. }
  65. }
  66. }