LiveTvOptions.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using MediaBrowser.Model.Dto;
  5. namespace MediaBrowser.Model.LiveTv
  6. {
  7. public class LiveTvOptions
  8. {
  9. public int? GuideDays { get; set; }
  10. public string RecordingPath { get; set; }
  11. public string MovieRecordingPath { get; set; }
  12. public string SeriesRecordingPath { 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 = Array.Empty<TunerHostInfo>();
  25. ListingProviders = Array.Empty<ListingsProviderInfo>();
  26. MediaLocationsCreated = Array.Empty<string>();
  27. RecordingPostProcessorArguments = "\"{path}\"";
  28. }
  29. }
  30. public class TunerHostInfo
  31. {
  32. public string Id { get; set; }
  33. public string Url { get; set; }
  34. public string Type { get; set; }
  35. public string DeviceId { get; set; }
  36. public string FriendlyName { get; set; }
  37. public bool ImportFavoritesOnly { get; set; }
  38. public bool AllowHWTranscoding { get; set; }
  39. public bool EnableStreamLooping { get; set; }
  40. public string Source { get; set; }
  41. public int TunerCount { get; set; }
  42. public string UserAgent { 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 string PreferredLanguage { get; set; }
  67. public string UserAgent { get; set; }
  68. public ListingsProviderInfo()
  69. {
  70. NewsCategories = new[] { "news", "journalism", "documentary", "current affairs" };
  71. SportsCategories = new[] { "sports", "basketball", "baseball", "football" };
  72. KidsCategories = new[] { "kids", "family", "children", "childrens", "disney" };
  73. MovieCategories = new[] { "movie" };
  74. EnabledTuners = Array.Empty<string>();
  75. EnableAllTuners = true;
  76. ChannelMappings = Array.Empty<NameValuePair>();
  77. }
  78. }
  79. }