LiveTvOptions.cs 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 string RecordingPath { get; set; }
  9. public string MovieRecordingPath { get; set; }
  10. public string SeriesRecordingPath { get; set; }
  11. public bool EnableRecordingEncoding { get; set; }
  12. public string RecordingEncodingFormat { get; set; }
  13. public bool EnableRecordingSubfolders { get; set; }
  14. public bool EnableOriginalAudioWithEncodedRecordings { get; set; }
  15. public TunerHostInfo[] TunerHosts { get; set; }
  16. public ListingsProviderInfo[] ListingProviders { get; set; }
  17. public int PrePaddingSeconds { get; set; }
  18. public int PostPaddingSeconds { get; set; }
  19. public string[] MediaLocationsCreated { get; set; }
  20. public string RecordingPostProcessor { get; set; }
  21. public string RecordingPostProcessorArguments { get; set; }
  22. public LiveTvOptions()
  23. {
  24. TunerHosts = new TunerHostInfo[] { };
  25. ListingProviders = new ListingsProviderInfo[] { };
  26. MediaLocationsCreated = new string[] { };
  27. RecordingEncodingFormat = "mkv";
  28. RecordingPostProcessorArguments = "\"{path}\"";
  29. }
  30. }
  31. public class TunerHostInfo
  32. {
  33. public string Id { get; set; }
  34. public string Url { get; set; }
  35. public string Type { get; set; }
  36. public string DeviceId { get; set; }
  37. public string FriendlyName { get; set; }
  38. public bool ImportFavoritesOnly { get; set; }
  39. public bool AllowHWTranscoding { get; set; }
  40. public bool EnableStreamLooping { get; set; }
  41. public bool EnableMpDecimate { get; set; }
  42. public bool EnableNewHdhrChannelIds { get; set; }
  43. public string Source { get; set; }
  44. public TunerHostInfo()
  45. {
  46. AllowHWTranscoding = true;
  47. }
  48. }
  49. public class ListingsProviderInfo
  50. {
  51. public string Id { get; set; }
  52. public string Type { get; set; }
  53. public string Username { get; set; }
  54. public string Password { get; set; }
  55. public string ListingsId { get; set; }
  56. public string ZipCode { get; set; }
  57. public string Country { get; set; }
  58. public string Path { get; set; }
  59. public string[] EnabledTuners { get; set; }
  60. public bool EnableAllTuners { get; set; }
  61. public string[] NewsCategories { get; set; }
  62. public string[] SportsCategories { get; set; }
  63. public string[] KidsCategories { get; set; }
  64. public string[] MovieCategories { get; set; }
  65. public NameValuePair[] ChannelMappings { get; set; }
  66. public string MoviePrefix { get; set; }
  67. public bool EnableNewProgramIds { get; set; }
  68. public string PreferredLanguage { get; set; }
  69. public ListingsProviderInfo()
  70. {
  71. NewsCategories = new string[] { "news", "journalism", "documentary", "current affairs" };
  72. SportsCategories = new string[] { "sports", "basketball", "baseball", "football" };
  73. KidsCategories = new string[] { "kids", "family", "children", "childrens", "disney" };
  74. MovieCategories = new string[] { "movie" };
  75. EnabledTuners = new string[] { };
  76. EnableAllTuners = true;
  77. ChannelMappings = new NameValuePair[] {};
  78. }
  79. }
  80. }