mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 14:26:43 +02:00
- unified handling for deleting channels (action based on file format support either mark-as-deleted, remove-from-file, append-at-end)
- added unit tests - internal code cleanup
This commit is contained in:
@@ -13,9 +13,16 @@ namespace ChanSort.Loader.Samsung
|
||||
{
|
||||
this.InitCommonData(slot, signalSource & ~SignalSource.MaskTvRadioData, data);
|
||||
|
||||
if (!this.InUse || this.OldProgramNr == 0)
|
||||
if (!this.InUse)
|
||||
return;
|
||||
|
||||
// "InUse" and "IsDeleted" are not always guessed correctly. If PrNr=0, the channel contains garbage
|
||||
if (this.OldProgramNr == 0)
|
||||
{
|
||||
this.InUse = false;
|
||||
return;
|
||||
}
|
||||
|
||||
this.InitDvbData(data, providerNames);
|
||||
|
||||
int transp = data.GetByte(_ChannelOrTransponder);
|
||||
|
||||
Reference in New Issue
Block a user