mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-02-10 08:26:46 +01:00
- cleanup (renamed directories to match project structure)
- tested and fixed Samsung favorites and locks for C,D,AstraHD
This commit is contained in:
29
ChanSort.Loader.ScmFile/AnalogChannel.cs
Normal file
29
ChanSort.Loader.ScmFile/AnalogChannel.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using ChanSort.Api;
|
||||
|
||||
namespace ChanSort.Loader.ScmFile
|
||||
{
|
||||
internal class AnalogChannel : ScmChannelBase
|
||||
{
|
||||
private const string _Skip = "Skip";
|
||||
private const string _Frequency = "offFrequency";
|
||||
|
||||
#region ctor()
|
||||
|
||||
public AnalogChannel(int slot, SignalSource signalSource, DataMapping mapping, decimal freq) : base(mapping)
|
||||
{
|
||||
this.InitCommonData(slot, signalSource, mapping);
|
||||
|
||||
this.FreqInMhz = (decimal)mapping.GetFloat(_Frequency); // C,D,E series have the value in the data record
|
||||
if (this.FreqInMhz == 0) // for B series take it from the Tuning table
|
||||
this.FreqInMhz = freq;
|
||||
if (this.FreqInMhz == 0) // fallback since Freq is part of the UID and requires a unique value
|
||||
this.FreqInMhz = slot;
|
||||
this.Skip = mapping.GetFlag(_Skip);
|
||||
this.ChannelOrTransponder = "";
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user