- fixed 200MHz offset for Samsung DVB-C channels

- added support for Sony channel lists (read-only at the moment)
- added option to disable check for updates
This commit is contained in:
hbeham
2019-07-14 22:54:46 +02:00
parent d10845a701
commit daeb9ffb1b
21 changed files with 864 additions and 50 deletions

View File

@@ -204,7 +204,7 @@ namespace ChanSort.Api
#endregion
#region GetDvbtFrequency()
public decimal GetDvbtFrequeny(int channelTransponder)
public decimal GetDvbtFrequency(int channelTransponder)
{
return channelTransponder * 8 + 306;
}
@@ -212,12 +212,17 @@ namespace ChanSort.Api
public int GetDvbcTransponder(decimal freqInMhz)
{
return GetDvbtTransponder(freqInMhz) + 25; // Samsung handles it like this
return (int)(freqInMhz - 106) / 8;
}
public decimal GetDvbcFrequency(int channelTransponder)
{
return channelTransponder * 8 + 106;
}
public string GetDvbcChannelName(decimal freqInMhz)
{
return dvbcChannels.TryGet((int)(freqInMhz * 1000)) ?? "";
return dvbcChannels.TryGet((int)(freqInMhz * 1000)) ?? dvbcChannels.TryGet((int)((freqInMhz-1) * 1000)) ?? "";
}
}
}