- added code to read Toshiba channel list (*.db)

- code cleanup
This commit is contained in:
hbeham
2013-04-12 00:47:50 +02:00
parent b670be943a
commit bcbae783d4
19 changed files with 566 additions and 60 deletions

View File

@@ -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;
}
}

View File

@@ -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