mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-26 00:59:03 +01:00
- added code to read Toshiba channel list (*.db)
- code cleanup
This commit is contained in:
@@ -21,7 +21,7 @@ namespace ChanSort.Loader.ScmFile
|
||||
if (freq == 0)
|
||||
freq = transp*8 + 106;
|
||||
|
||||
this.ChannelOrTransponder = ((int)(freq-106)/8).ToString();
|
||||
this.ChannelOrTransponder = LookupData.Instance.GetDvbtChannel(freq).ToString();
|
||||
this.FreqInMhz = freq;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,10 +96,7 @@ namespace ChanSort.Loader.ScmFile
|
||||
this.ServiceType = data.GetByte(_ServiceType);
|
||||
this.SymbolRate = data.GetWord(_SymbolRate);
|
||||
|
||||
if (this.ServiceType == (int)DvbServiceType.Radio)
|
||||
this.SignalSource |= SignalSource.Radio;
|
||||
else
|
||||
this.SignalSource |= SignalSource.Tv;
|
||||
this.SignalSource |= LookupData.Instance.IsRadioOrTv(this.ServiceType);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user