LiveTvOptions.cs 3.5 KB

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