- fixed loading .txt reference lists

- added support for HB\_DATABASE\_\*.DBM channel lists with file size 74303  (e.g. Renkforce 1510 C HD, Telestar digiHD TC 7)
- added support for dtv_cmdb_2.bin files with file size 2731173  (e.g. Dijitsu Android TV with LD-M538 board)
- improved experimental support for amdb\*.db Android STB channel lists  (now grouped by TV and radio for each satellite)
- combined HHD Hex Editor Neo structure definition files for HB_DATABASE.DBM file formats
This commit is contained in:
Horst Beham
2023-10-22 21:43:46 +02:00
parent 56676748b7
commit 8ac45d5729
17 changed files with 559 additions and 88 deletions

View File

@@ -4,6 +4,9 @@ using System.Text;
namespace ChanSort.Api
{
/// <summary>
/// This class reads .txt files where each line has the format: progNr;name;onid-tsid-sid
/// </summary>
public class TxtRefListSerializer : SerializerBase
{
private static readonly char[] Separators = { ';' };
@@ -68,7 +71,7 @@ namespace ChanSort.Api
if (!int.TryParse(parts[0], out progNr))
continue;
var channel = new ChannelInfo(SignalSource.All, lineNr, progNr, parts[1]);
var channel = new ChannelInfo(SignalSource.Any, lineNr, progNr, parts[1]);
if (parts.Length >= 3)
{
var subParts = parts[2].Split('-');
@@ -84,7 +87,6 @@ namespace ChanSort.Api
}
}
this.DataRoot.AddChannel(this.allChannels, channel);
lineNr++;
}
}