LiveTvOptions.cs 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using System.Collections.Generic;
  2. using MediaBrowser.Model.Dto;
  3. using MediaBrowser.Model.Extensions;
  4. namespace MediaBrowser.Model.LiveTv
  5. {
  6. public class LiveTvOptions
  7. {
  8. public int? GuideDays { get; set; }
  9. public bool EnableMovieProviders { get; set; }
  10. public string RecordingPath { get; set; }
  11. public string MovieRecordingPath { get; set; }
  12. public string SeriesRecordingPath { get; set; }
  13. public bool EnableRecordingEncoding { get; set; }
  14. public string RecordingEncodingFormat { get; set; }
  15. public bool EnableRecordingSubfolders { get; set; }
  16. public bool EnableOriginalAudioWithEncodedRecordings { get; set; }
  17. public string RecordedVideoCodec { get; set; }
  18. public List<TunerHostInfo> TunerHosts { get; set; }
  19. public List<ListingsProviderInfo> ListingProviders { get; set; }
  20. public int PrePaddingSeconds { get; set; }
  21. public int PostPaddingSeconds { get; set; }
  22. public string[] MediaLocationsCreated { get; set; }
  23. public string RecordingPostProcessor { get; set; }
  24. public string RecordingPostProcessorArguments { get; set; }
  25. public LiveTvOptions()
  26. {
  27. EnableMovieProviders = true;
  28. TunerHosts = new List<TunerHostInfo>();
  29. ListingProviders = new List<ListingsProviderInfo>();
  30. MediaLocationsCreated = new string[] { };
  31. RecordingEncodingFormat = "mkv";
  32. RecordingPostProcessorArguments = "\"{path}\"";
  33. EnableRecordingEncoding = true;
  34. }
  35. }
  36. public class TunerHostInfo
  37. {
  38. public string Id { get; set; }
  39. public string Url { get; set; }
  40. public string Type { get; set; }
  41. public string DeviceId { get; set; }
  42. public string FriendlyName { get; set; }
  43. public bool ImportFavoritesOnly { get; set; }
  44. public bool AllowHWTranscoding { get; set; }
  45. public bool EnableTvgId { 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 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. }