- validating checksum when loading dtv_cmdb_2.bin

- added write support for dtv_cmdb_2.bin
- File / Information no longer shows duplicate program number warnings for negative numbers (-2 is an allowed dupe for dtv_cmdb_2)
- fixed Sony unit test (Sky option channels are now counted as TV and not data)
This commit is contained in:
Horst Beham
2021-09-05 00:46:26 +02:00
parent ccf090ddfd
commit 70138d5ac5
8 changed files with 165 additions and 121 deletions

View File

@@ -253,8 +253,13 @@ namespace ChanSort.Api
chan.NewProgramNr = -1;
}
for (int j=0; j<=this.FavListCount; j++)
chan.SetOldPosition(j, chan.GetPosition(j));
for (int j = 0; j <= this.FavListCount; j++)
{
var newPos = chan.GetPosition(j);
chan.SetOldPosition(j, newPos);
if (newPos < -1)
chan.SetPosition(j, -1);
}
}
}
}