LiveTvOptions.cs 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. using System.Collections.Generic;
  2. using MediaBrowser.Model.Dto;
  3. namespace MediaBrowser.Model.LiveTv
  4. {
  5. public class LiveTvOptions
  6. {
  7. public int? GuideDays { get; set; }
  8. public bool EnableMovieProviders { get; set; }
  9. public string RecordingPath { get; set; }
  10. public string MovieRecordingPath { get; set; }
  11. public string SeriesRecordingPath { get; set; }
  12. public bool EnableAutoOrganize { get; set; }
  13. public bool EnableRecordingEncoding { get; set; }
  14. public bool EnableRecordingSubfolders { get; set; }
  15. public bool EnableOriginalAudioWithEncodedRecordings { get; set; }
  16. public List<TunerHostInfo> TunerHosts { get; set; }
  17. public List<ListingsProviderInfo> ListingProviders { get; set; }
  18. public int PrePaddingSeconds { get; set; }
  19. public int PostPaddingSeconds { get; set; }
  20. public string[] MediaLocationsCreated { get; set; }
  21. public LiveTvOptions()
  22. {
  23. EnableMovieProviders = true;
  24. EnableRecordingSubfolders = true;
  25. TunerHosts = new List<TunerHostInfo>();
  26. ListingProviders = new List<ListingsProviderInfo>();
  27. MediaLocationsCreated = new string[] { };
  28. }
  29. }
  30. public class TunerHostInfo
  31. {
  32. public string Id { get; set; }
  33. public string Url { get; set; }
  34. public string Type { get; set; }
  35. public string DeviceId { get; set; }
  36. public bool ImportFavoritesOnly { get; set; }
  37. public bool AllowHWTranscoding { get; set; }
  38. public bool IsEnabled { get; set; }
  39. public string M3UUrl { get; set; }
  40. public string InfoUrl { get; set; }
  41. public string FriendlyName { get; set; }
  42. public int Tuners { get; set; }
  43. public string DiseqC { get; set; }
  44. public string SourceA { get; set; }
  45. public string SourceB { get; set; }
  46. public string SourceC { get; set; }
  47. public string SourceD { get; set; }
  48. public int DataVersion { get; set; }
  49. public TunerHostInfo()
  50. {
  51. IsEnabled = true;
  52. AllowHWTranscoding = true;
  53. }
  54. }
  55. public class ListingsProviderInfo
  56. {
  57. public string Id { get; set; }
  58. public string Type { get; set; }
  59. public string Username { get; set; }
  60. public string Password { get; set; }
  61. public string ListingsId { get; set; }
  62. public string ZipCode { get; set; }
  63. public string Country { get; set; }
  64. public string Path { get; set; }
  65. public string[] EnabledTuners { get; set; }
  66. public bool EnableAllTuners { get; set; }
  67. public string[] NewsCategories { get; set; }
  68. public string[] SportsCategories { get; set; }
  69. public string[] KidsCategories { get; set; }
  70. public string[] MovieCategories { get; set; }
  71. public NameValuePair[] ChannelMappings { get; set; }
  72. public ListingsProviderInfo()
  73. {
  74. NewsCategories = new string[] { "news", "journalism", "documentary", "current affairs" };
  75. SportsCategories = new string[] { "sports", "basketball", "baseball", "football" };
  76. KidsCategories = new string[] { "kids", "family", "children", "childrens", "disney" };
  77. MovieCategories = new string[] { "movie" };
  78. EnabledTuners = new string[] { };
  79. EnableAllTuners = true;
  80. ChannelMappings = new NameValuePair[] {};
  81. }
  82. }
  83. }