mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-02-27 00:30:43 +01:00
- upgrade to DX 21.2.4
- added cmdb .bin configuration for a ChangHong TV - added support for Encrypted-flag in some Philips binary files
This commit is contained in:
@@ -56,7 +56,7 @@ namespace ChanSort.Loader.CmdbBin
|
||||
}
|
||||
|
||||
if (!this.loaded)
|
||||
throw new FileLoadException("\"" + this.FileName + "\" does not belong to a dtv_cmdb_* file system");
|
||||
throw new FileLoadException("\"" + this.FileName + "\" does not belong to a supported dtv_cmdb_* file system");
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -65,7 +65,13 @@ namespace ChanSort.Loader.CmdbBin
|
||||
{
|
||||
var data = File.ReadAllBytes(file);
|
||||
var fileName = Path.GetFileName(file).ToLowerInvariant();
|
||||
var sec = this.ini.GetSection($"{fileName}:{data.Length}");
|
||||
var secId = $"{fileName}:{data.Length}";
|
||||
var sec = this.ini.GetSection(secId);
|
||||
if (sec == null)
|
||||
{
|
||||
protocol.AppendLine("Skipped file with unknown data size: " + secId);
|
||||
return;
|
||||
}
|
||||
|
||||
LoadBitmappedRecords(data, sec, "Satellite", ReadSatellite);
|
||||
LoadBitmappedRecords(data, sec, "Transponder", ReadTransponder);
|
||||
|
||||
Reference in New Issue
Block a user