LiveTvOptions.cs 3.4 KB

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