added experimental loader for various format versions of dtv_cmdb_2.bin used by some models from Sharp,Toshiba, Dyon, Philips, OK., ...

This commit is contained in:
Horst Beham
2021-09-03 02:26:57 +02:00
parent 17761a5f81
commit 74e42f70de
12 changed files with 1389 additions and 2 deletions

View File

@@ -153,11 +153,15 @@ namespace ChanSort.Api
foreach (var channel in list.Channels)
{
if (!list.IsMixedSourceFavoritesList)
channel.NewProgramNr = channel.OldProgramNr;
channel.NewProgramNr = Math.Max(-1, channel.OldProgramNr);
if (!this.MixedSourceFavorites || list.IsMixedSourceFavoritesList)
{
for (int i = 1; i <= maxPos; i++)
channel.SetPosition(i, channel.GetOldPosition(i));
{
var oldPos = channel.GetOldPosition(i);
if (oldPos >= 0)
channel.SetPosition(i, oldPos);
}
}
}
}