mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-26 00:59:03 +01:00
- fixed unit text expectation files for LG (the "moved" flag is no longer set on analog channels) - fixed reading Samsung channel lists containing empty satellite records - disabled individual sorting of favorite lists for Samsung F and H series. It appears that only the E series firmware supports this feature. - disabled deleting of channels from LG's GlobalClone channel lists because the TV does not support this. Instead they are appended at the end of the list. - added support for Samsung "map-AirCableMixedA" and "map-AirCableMixedD" channel lists (used by some hospitality TVs) - disabled editing of channel names for Panasonic lists to prevent side effects after saving (e.g. incorrect alphabetical sorting shown on TV)
31 lines
988 B
C#
31 lines
988 B
C#
using System.Collections.Generic;
|
|
using ChanSort.Api;
|
|
|
|
namespace ChanSort.Loader.Samsung
|
|
{
|
|
public class DigitalChannel : ScmChannelBase
|
|
{
|
|
private const string _ChannelOrTransponder = "offChannelTransponder";
|
|
|
|
public DigitalChannel(int slot, SignalSource signalSource, DataMapping data,
|
|
IDictionary<int, decimal> transpFreq, bool sortedFavorites, IDictionary<int, string> providerNames) :
|
|
base(data, sortedFavorites)
|
|
{
|
|
this.InitCommonData(slot, (SignalSource)((int)signalSource & ~(int)(SignalSource.TvAndRadio)), data);
|
|
|
|
if (!this.InUse || this.OldProgramNr == 0)
|
|
return;
|
|
|
|
this.InitDvbData(data, providerNames);
|
|
|
|
int transp = data.GetByte(_ChannelOrTransponder);
|
|
decimal freq = transpFreq.TryGet(transp);
|
|
if (freq == 0)
|
|
freq = transp*8 + 106; // (106 = DVB-C; DVB-T=306?)
|
|
|
|
this.ChannelOrTransponder = LookupData.Instance.GetDvbtTransponder(freq).ToString();
|
|
this.FreqInMhz = freq;
|
|
}
|
|
}
|
|
}
|