LiveTvOptions.cs 2.7 KB

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