mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-09 02:46:49 +02:00
- 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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user