2015-07-20 11:32:55 -07:00
|
|
|
|
using System.Collections.Generic;
|
2016-06-06 11:22:42 -07:00
|
|
|
|
using MediaBrowser.Model.Dto;
|
2015-07-20 11:32:55 -07:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.LiveTv
|
2014-05-08 13:26:20 -07:00
|
|
|
|
{
|
|
|
|
|
public class LiveTvOptions
|
|
|
|
|
{
|
|
|
|
|
public int? GuideDays { get; set; }
|
2015-07-20 11:32:55 -07:00
|
|
|
|
public string RecordingPath { get; set; }
|
2016-05-04 13:50:47 -07:00
|
|
|
|
public string MovieRecordingPath { get; set; }
|
|
|
|
|
public string SeriesRecordingPath { get; set; }
|
2016-02-12 00:01:38 -07:00
|
|
|
|
public bool EnableRecordingEncoding { get; set; }
|
2016-09-07 23:41:49 -07:00
|
|
|
|
public string RecordingEncodingFormat { get; set; }
|
2016-05-04 13:50:47 -07:00
|
|
|
|
public bool EnableRecordingSubfolders { get; set; }
|
2016-04-27 14:26:28 -07:00
|
|
|
|
public bool EnableOriginalAudioWithEncodedRecordings { get; set; }
|
2016-10-28 12:56:54 -07:00
|
|
|
|
public string RecordedVideoCodec { get; set; }
|
2015-03-14 18:42:09 -07:00
|
|
|
|
|
2015-07-22 22:25:55 -07:00
|
|
|
|
public List<TunerHostInfo> TunerHosts { get; set; }
|
|
|
|
|
public List<ListingsProviderInfo> ListingProviders { get; set; }
|
2015-08-23 19:08:20 -07:00
|
|
|
|
|
|
|
|
|
public int PrePaddingSeconds { get; set; }
|
|
|
|
|
public int PostPaddingSeconds { get; set; }
|
2016-02-24 12:06:26 -07:00
|
|
|
|
|
2016-05-20 08:57:07 -07:00
|
|
|
|
public string[] MediaLocationsCreated { get; set; }
|
|
|
|
|
|
2016-11-22 12:45:55 -07:00
|
|
|
|
public string RecordingPostProcessor { get; set; }
|
|
|
|
|
public string RecordingPostProcessorArguments { get; set; }
|
|
|
|
|
|
2015-03-14 18:42:09 -07:00
|
|
|
|
public LiveTvOptions()
|
|
|
|
|
{
|
2015-07-20 11:32:55 -07:00
|
|
|
|
TunerHosts = new List<TunerHostInfo>();
|
2015-07-22 22:25:55 -07:00
|
|
|
|
ListingProviders = new List<ListingsProviderInfo>();
|
2016-05-20 08:57:07 -07:00
|
|
|
|
MediaLocationsCreated = new string[] { };
|
2017-03-25 21:20:28 -07:00
|
|
|
|
RecordingEncodingFormat = "mkv";
|
2016-11-22 12:45:55 -07:00
|
|
|
|
RecordingPostProcessorArguments = "\"{path}\"";
|
2017-03-07 12:05:44 -07:00
|
|
|
|
EnableRecordingEncoding = true;
|
2015-03-14 18:42:09 -07:00
|
|
|
|
}
|
2014-05-08 13:26:20 -07:00
|
|
|
|
}
|
2015-07-20 11:32:55 -07:00
|
|
|
|
|
|
|
|
|
public class TunerHostInfo
|
|
|
|
|
{
|
2015-07-20 21:22:46 -07:00
|
|
|
|
public string Id { get; set; }
|
2015-07-20 11:32:55 -07:00
|
|
|
|
public string Url { get; set; }
|
|
|
|
|
public string Type { get; set; }
|
2016-03-07 22:00:03 -07:00
|
|
|
|
public string DeviceId { get; set; }
|
2017-03-13 11:57:45 -07:00
|
|
|
|
public string FriendlyName { get; set; }
|
2015-07-25 11:11:46 -07:00
|
|
|
|
public bool ImportFavoritesOnly { get; set; }
|
2016-04-03 23:46:45 -07:00
|
|
|
|
public bool AllowHWTranscoding { get; set; }
|
2017-01-25 13:14:47 -07:00
|
|
|
|
public bool EnableTvgId { get; set; }
|
2017-06-24 11:32:22 -07:00
|
|
|
|
public bool EnableStreamLooping { get; set; }
|
2016-02-25 13:29:38 -07:00
|
|
|
|
|
2015-07-27 09:21:18 -07:00
|
|
|
|
public TunerHostInfo()
|
|
|
|
|
{
|
2016-10-12 11:23:09 -07:00
|
|
|
|
AllowHWTranscoding = true;
|
2017-06-30 12:58:53 -07:00
|
|
|
|
EnableTvgId = true;
|
2015-07-27 09:21:18 -07:00
|
|
|
|
}
|
2015-07-20 11:32:55 -07:00
|
|
|
|
}
|
2015-07-22 22:25:55 -07:00
|
|
|
|
|
|
|
|
|
public class ListingsProviderInfo
|
|
|
|
|
{
|
2015-07-23 06:23:22 -07:00
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
public string Type { get; set; }
|
2015-07-22 22:25:55 -07:00
|
|
|
|
public string Username { get; set; }
|
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
public string ListingsId { get; set; }
|
2015-07-23 06:23:22 -07:00
|
|
|
|
public string ZipCode { get; set; }
|
2015-07-23 16:40:54 -07:00
|
|
|
|
public string Country { get; set; }
|
2016-02-16 20:07:15 -07:00
|
|
|
|
public string Path { get; set; }
|
2016-02-24 12:06:26 -07:00
|
|
|
|
|
|
|
|
|
public string[] EnabledTuners { get; set; }
|
|
|
|
|
public bool EnableAllTuners { get; set; }
|
2016-06-05 13:41:44 -07:00
|
|
|
|
public string[] NewsCategories { get; set; }
|
|
|
|
|
public string[] SportsCategories { get; set; }
|
|
|
|
|
public string[] KidsCategories { get; set; }
|
|
|
|
|
public string[] MovieCategories { get; set; }
|
2016-06-06 11:22:42 -07:00
|
|
|
|
public NameValuePair[] ChannelMappings { get; set; }
|
2016-11-15 10:55:26 -07:00
|
|
|
|
public string MoviePrefix { get; set; }
|
2017-02-18 20:46:09 -07:00
|
|
|
|
public bool EnableNewProgramIds { get; set; }
|
2017-06-24 11:32:22 -07:00
|
|
|
|
public string PreferredLanguage { get; set; }
|
2016-02-24 12:06:26 -07:00
|
|
|
|
|
|
|
|
|
public ListingsProviderInfo()
|
|
|
|
|
{
|
2016-06-05 14:08:55 -07:00
|
|
|
|
NewsCategories = new string[] { "news", "journalism", "documentary", "current affairs" };
|
2016-06-05 13:41:44 -07:00
|
|
|
|
SportsCategories = new string[] { "sports", "basketball", "baseball", "football" };
|
2016-06-05 14:08:55 -07:00
|
|
|
|
KidsCategories = new string[] { "kids", "family", "children", "childrens", "disney" };
|
2016-06-05 13:41:44 -07:00
|
|
|
|
MovieCategories = new string[] { "movie" };
|
2016-02-24 12:06:26 -07:00
|
|
|
|
EnabledTuners = new string[] { };
|
|
|
|
|
EnableAllTuners = true;
|
2016-06-06 11:22:42 -07:00
|
|
|
|
ChannelMappings = new NameValuePair[] {};
|
2016-02-24 12:06:26 -07:00
|
|
|
|
}
|
2015-07-22 22:25:55 -07:00
|
|
|
|
}
|
2016-04-03 23:46:45 -07:00
|
|
|
|
}
|