mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-18 05:12:04 +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)
32 lines
1023 B
C#
32 lines
1023 B
C#
using ChanSort.Api;
|
|
|
|
namespace ChanSort.Loader.Samsung
|
|
{
|
|
internal class AnalogChannel : ScmChannelBase
|
|
{
|
|
private const string _Frequency = "offFrequency";
|
|
|
|
#region ctor()
|
|
|
|
public AnalogChannel(int slot, bool isCable, DataMapping mapping, decimal freq, bool sortedFavorites) :
|
|
base(mapping, sortedFavorites)
|
|
{
|
|
var signalSource = SignalSource.Analog | SignalSource.Tv;
|
|
signalSource |= isCable ? SignalSource.Cable : SignalSource.Antenna;
|
|
this.InitCommonData(slot, signalSource, mapping);
|
|
|
|
var floatFreq = mapping.GetFloat(_Frequency);
|
|
if (!float.IsNaN(floatFreq))
|
|
this.FreqInMhz = (decimal)floatFreq; // 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.ChannelOrTransponder = "";
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
|
|
}
|