LiveTvOptions.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 string MovieRecordingPath { get; set; }
  10. public string SeriesRecordingPath { get; set; }
  11. public bool EnableAutoOrganize { get; set; }
  12. public bool EnableRecordingEncoding { get; set; }
  13. public bool EnableRecordingSubfolders { get; set; }
  14. public bool EnableOriginalAudioWithEncodedRecordings { get; set; }
  15. public List<TunerHostInfo> TunerHosts { get; set; }
  16. public List<ListingsProviderInfo> ListingProviders { get; set; }
  17. public int PrePaddingSeconds { get; set; }
  18. public int PostPaddingSeconds { get; set; }
  19. public LiveTvOptions()
  20. {
  21. EnableMovieProviders = true;
  22. EnableRecordingSubfolders = true;
  23. TunerHosts = new List<TunerHostInfo>();
  24. ListingProviders = new List<ListingsProviderInfo>();
  25. }
  26. }
  27. public class TunerHostInfo
  28. {
  29. public string Id { get; set; }
  30. public string Url { get; set; }
  31. public string Type { get; set; }
  32. public string DeviceId { get; set; }
  33. public bool ImportFavoritesOnly { get; set; }
  34. public bool AllowHWTranscoding { get; set; }
  35. public bool IsEnabled { get; set; }
  36. public string M3UUrl { get; set; }
  37. public string InfoUrl { get; set; }
  38. public string FriendlyName { get; set; }
  39. public int Tuners { get; set; }
  40. public string DiseqC { get; set; }
  41. public string SourceA { get; set; }
  42. public string SourceB { get; set; }
  43. public string SourceC { get; set; }
  44. public string SourceD { get; set; }
  45. public int DataVersion { get; set; }
  46. public TunerHostInfo()
  47. {
  48. IsEnabled = true;
  49. AllowHWTranscoding = true;
  50. }
  51. }
  52. public class ListingsProviderInfo
  53. {
  54. public string Id { get; set; }
  55. public string Type { get; set; }
  56. public string Username { get; set; }
  57. public string Password { get; set; }
  58. public string ListingsId { get; set; }
  59. public string ZipCode { get; set; }
  60. public string Country { get; set; }
  61. public string Path { get; set; }
  62. public string[] EnabledTuners { get; set; }
  63. public bool EnableAllTuners { get; set; }
  64. public ListingsProviderInfo()
  65. {
  66. EnabledTuners = new string[] { };
  67. EnableAllTuners = true;
  68. }
  69. }
  70. }