LiveTvOptions.cs 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. }
  31. }
  32. public class TunerHostInfo
  33. {
  34. public string Id { get; set; }
  35. public string Url { get; set; }
  36. public string Type { get; set; }
  37. public string DeviceId { get; set; }
  38. public string FriendlyName { get; set; }
  39. public bool ImportFavoritesOnly { get; set; }
  40. public bool AllowHWTranscoding { get; set; }
  41. public bool EnableStreamLooping { get; set; }
  42. public bool EnableMpDecimate { get; set; }
  43. public bool EnableNewHdhrChannelIds { get; set; }
  44. public string Source { get; set; }
  45. public TunerHostInfo()
  46. {
  47. AllowHWTranscoding = true;
  48. }
  49. }
  50. public class ListingsProviderInfo
  51. {
  52. public string Id { get; set; }
  53. public string Type { get; set; }
  54. public string Username { get; set; }
  55. public string Password { get; set; }
  56. public string ListingsId { get; set; }
  57. public string ZipCode { get; set; }
  58. public string Country { get; set; }
  59. public string Path { get; set; }
  60. public string[] EnabledTuners { get; set; }
  61. public bool EnableAllTuners { get; set; }
  62. public string[] NewsCategories { get; set; }
  63. public string[] SportsCategories { get; set; }
  64. public string[] KidsCategories { get; set; }
  65. public string[] MovieCategories { get; set; }
  66. public NameValuePair[] ChannelMappings { get; set; }
  67. public string MoviePrefix { get; set; }
  68. public bool EnableNewProgramIds { get; set; }
  69. public string PreferredLanguage { get; set; }
  70. public ListingsProviderInfo()
  71. {
  72. NewsCategories = new string[] { "news", "journalism", "documentary", "current affairs" };
  73. SportsCategories = new string[] { "sports", "basketball", "baseball", "football" };
  74. KidsCategories = new string[] { "kids", "family", "children", "childrens", "disney" };
  75. MovieCategories = new string[] { "movie" };
  76. EnabledTuners = new string[] { };
  77. EnableAllTuners = true;
  78. ChannelMappings = new NameValuePair[] {};
  79. }
  80. }
  81. }