mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-28 01:59:03 +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:
24
ChanSort.Loader.ScmFile/DigitalChannel.cs
Normal file
24
ChanSort.Loader.ScmFile/DigitalChannel.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
using ChanSort.Api;
|
||||
|
||||
namespace ChanSort.Loader.ScmFile
|
||||
{
|
||||
public class DigitalChannel : ScmChannelBase
|
||||
{
|
||||
private const string _ChannelOrTransponder = "offChannelTransponder";
|
||||
|
||||
public DigitalChannel(int slot, SignalSource signalSource, DataMapping data, IDictionary<int, decimal> transpFreq) : base(data)
|
||||
{
|
||||
this.InitCommonData(slot, signalSource, data);
|
||||
this.InitDvbData(data);
|
||||
|
||||
int transp = data.GetByte(_ChannelOrTransponder);
|
||||
decimal freq = transpFreq.TryGet(transp);
|
||||
if (freq == 0)
|
||||
freq = transp*8 + 106;
|
||||
|
||||
this.ChannelOrTransponder = ((int)(freq-106)/8).ToString();
|
||||
this.FreqInMhz = freq;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user