- Philips: fixed error saving the Favorite.xml file (effects Philips "ChannelMap_105" and later file format versions)

- added Hungarian translation (credits to Istvan Krisko)
- Sony XML: fixed display of wrong DVB-C cable channel/transponder number
- LG webOS 5: unfortunately no news yet, but the insight that some "CX" models run on webOS 3.6 and others on 5.1, using
  different file formats.
This commit is contained in:
Horst Beham
2020-12-05 21:55:43 +01:00
parent 2c61c28b5f
commit 6584a666c6
43 changed files with 3491 additions and 80 deletions

View File

@@ -53,6 +53,7 @@ namespace ChanSort.Loader.PhilipsBin
var modelNameLen = BitConverter.ToInt32(content, off);
off += 4 + modelNameLen;
var baseDir = Path.GetDirectoryName(path);
var relPath = "/channellib/";
while (off < content.Length)
{
@@ -64,7 +65,12 @@ namespace ChanSort.Loader.PhilipsBin
relPath = fileName;
else
{
crcOffsetByRelPath[relPath + fileName] = off;
// normally all files after the /s2channellib/ entry are inside that folder, but "Favorite.xml" is in the main folder
var newPath = relPath + fileName;
if (!File.Exists(Path.Combine(baseDir, newPath)) && File.Exists(Path.Combine(baseDir, fileName)))
newPath = "/" + fileName;
crcOffsetByRelPath[newPath] = off;
off += 2;
}
}