update sat page

pull/702/head
Luke Pulverenti 9 years ago
parent d683f30619
commit 3bae86ae41

@ -35,6 +35,7 @@ namespace MediaBrowser.Model.LiveTv
public string M3UUrl { get; set; } public string M3UUrl { get; set; }
public string FriendlyName { get; set; } public string FriendlyName { get; set; }
public int Tuners { get; set; } public int Tuners { get; set; }
public string DiseqC { get; set; }
public int DataVersion { get; set; } public int DataVersion { get; set; }

@ -90,6 +90,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.SatIp
if (existing == null) if (existing == null)
{ {
if (string.IsNullOrWhiteSpace(info.M3UUrl))
{
return;
}
await _liveTvManager.SaveTunerHost(new TunerHostInfo await _liveTvManager.SaveTunerHost(new TunerHostInfo
{ {
Type = SatIpHost.DeviceType, Type = SatIpHost.DeviceType,
@ -97,7 +102,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.SatIp
DataVersion = 1, DataVersion = 1,
DeviceId = info.DeviceId, DeviceId = info.DeviceId,
FriendlyName = info.FriendlyName, FriendlyName = info.FriendlyName,
Tuners = info.Tuners Tuners = info.Tuners,
M3UUrl = info.M3UUrl,
IsEnabled = true
}).ConfigureAwait(false); }).ConfigureAwait(false);
} }

Loading…
Cancel
Save