diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-13 23:32:03 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-13 23:32:03 -0400 |
| commit | 3bae86ae4174cc7f4c0968c5d4a18f38520e605e (patch) | |
| tree | b2cf725be255d3f355561f1b050ac03e80f28e67 | |
| parent | d683f3061979d786efc574f1073af4e77da11772 (diff) | |
update sat page
| -rw-r--r-- | MediaBrowser.Model/LiveTv/LiveTvOptions.cs | 1 | ||||
| -rw-r--r-- | MediaBrowser.Server.Implementations/LiveTv/TunerHosts/SatIp/SatIpDiscovery.cs | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/MediaBrowser.Model/LiveTv/LiveTvOptions.cs b/MediaBrowser.Model/LiveTv/LiveTvOptions.cs index 78c683064..f92a0c6e2 100644 --- a/MediaBrowser.Model/LiveTv/LiveTvOptions.cs +++ b/MediaBrowser.Model/LiveTv/LiveTvOptions.cs @@ -35,6 +35,7 @@ namespace MediaBrowser.Model.LiveTv public string M3UUrl { get; set; } public string FriendlyName { get; set; } public int Tuners { get; set; } + public string DiseqC { get; set; } public int DataVersion { get; set; } diff --git a/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/SatIp/SatIpDiscovery.cs b/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/SatIp/SatIpDiscovery.cs index 9a02413cd..19b91a34f 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/SatIp/SatIpDiscovery.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/SatIp/SatIpDiscovery.cs @@ -90,6 +90,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.SatIp if (existing == null) { + if (string.IsNullOrWhiteSpace(info.M3UUrl)) + { + return; + } + await _liveTvManager.SaveTunerHost(new TunerHostInfo { Type = SatIpHost.DeviceType, @@ -97,7 +102,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.SatIp DataVersion = 1, DeviceId = info.DeviceId, FriendlyName = info.FriendlyName, - Tuners = info.Tuners + Tuners = info.Tuners, + M3UUrl = info.M3UUrl, + IsEnabled = true }).ConfigureAwait(false); } |
