jellyfin-server/MediaBrowser.Model/LiveTv/LiveTvOptions.cs

126 lines
3.3 KiB
C#
Raw Normal View History

#nullable disable
2020-02-04 00:49:27 +00:00
#pragma warning disable CS1591
using System;
using MediaBrowser.Model.Dto;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Model.LiveTv
{
public class LiveTvOptions
{
public int? GuideDays { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string RecordingPath { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string MovieRecordingPath { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string SeriesRecordingPath { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public bool EnableRecordingSubfolders { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public bool EnableOriginalAudioWithEncodedRecordings { get; set; }
public TunerHostInfo[] TunerHosts { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public ListingsProviderInfo[] ListingProviders { get; set; }
public int PrePaddingSeconds { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public int PostPaddingSeconds { get; set; }
public string[] MediaLocationsCreated { get; set; }
public string RecordingPostProcessor { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string RecordingPostProcessorArguments { get; set; }
public LiveTvOptions()
{
2018-12-27 21:43:48 +00:00
TunerHosts = Array.Empty<TunerHostInfo>();
ListingProviders = Array.Empty<ListingsProviderInfo>();
MediaLocationsCreated = Array.Empty<string>();
2018-12-27 23:27:57 +00:00
RecordingPostProcessorArguments = "\"{path}\"";
}
}
public class TunerHostInfo
{
public string Id { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string Url { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string Type { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string DeviceId { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string FriendlyName { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public bool ImportFavoritesOnly { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public bool AllowHWTranscoding { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public bool EnableStreamLooping { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string Source { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public int TunerCount { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string UserAgent { get; set; }
public TunerHostInfo()
{
AllowHWTranscoding = true;
}
}
public class ListingsProviderInfo
{
public string Id { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string Type { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string Username { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string Password { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string ListingsId { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string ZipCode { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string Country { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string Path { get; set; }
public string[] EnabledTuners { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public bool EnableAllTuners { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string[] NewsCategories { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string[] SportsCategories { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string[] KidsCategories { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string[] MovieCategories { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public NameValuePair[] ChannelMappings { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string MoviePrefix { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string PreferredLanguage { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string UserAgent { get; set; }
public ListingsProviderInfo()
{
NewsCategories = new[] { "news", "journalism", "documentary", "current affairs" };
SportsCategories = new[] { "sports", "basketball", "baseball", "football" };
KidsCategories = new[] { "kids", "family", "children", "childrens", "disney" };
MovieCategories = new[] { "movie" };
2018-12-27 21:43:48 +00:00
EnabledTuners = Array.Empty<string>();
2018-12-27 23:27:57 +00:00
EnableAllTuners = true;
2018-12-27 21:43:48 +00:00
ChannelMappings = Array.Empty<NameValuePair>();
2018-12-27 23:27:57 +00:00
}
}
}