mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-03-11 06:20:17 +01:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user