- Philips format 120 uses lowercase hex digits for DVB*.xml files (TV shows wrong chars when using uppercase)

- upgrade to DX 23.1.6 (with a hotfix)
This commit is contained in:
Horst Beham
2023-12-12 19:07:57 +01:00
parent 7f8e73fd05
commit ecac26b2bc
21 changed files with 358 additions and 357 deletions

View File

@@ -641,6 +641,7 @@ namespace ChanSort.Loader.Philips
var padChannelNameBytes = this.iniMapSection?.GetBool("padChannelName", true) ?? true;
var setFavoriteNumber = this.iniMapSection?.GetBool("setFavoriteNumber", false) ?? false;
var userReorderChannel = this.iniMapSection?.GetString("userReorderChannel") ?? "";
var uppercaseHexDigits = !(this.iniMapSection?.GetBool("dvbXmlLowercaseHexDigits", false) ?? false);
foreach (var channel in list.Channels)
{
@@ -657,7 +658,7 @@ namespace ChanSort.Loader.Philips
if (ch.Format == 1)
this.UpdateRepairXml(ch);
else if (ch.Format == 2)
this.UpdateChannelMapXml(ch, padChannelNameBytes, setFavoriteNumber, userReorderChannel);
this.UpdateChannelMapXml(ch, padChannelNameBytes, setFavoriteNumber, userReorderChannel, uppercaseHexDigits);
}
}
#endregion
@@ -673,7 +674,7 @@ namespace ChanSort.Loader.Philips
#endregion
#region UpdateChannelMapXml()
private void UpdateChannelMapXml(Channel ch, bool paddedName, bool setFavoriteNumber, string userReorderChannel)
private void UpdateChannelMapXml(Channel ch, bool paddedName, bool setFavoriteNumber, string userReorderChannel, bool uppercaseHexDigits)
{
var setup = ch.SetupNode.Attributes;
setup["ChannelNumber"].Value = ch.NewProgramNr.ToString();
@@ -681,7 +682,7 @@ namespace ChanSort.Loader.Philips
if (ch.IsNameModified)
{
setup["ChannelName"].InnerText = EncodeName(ch.Name, 50, paddedName, paddedName);
setup["ChannelName"].InnerText = EncodeName(ch.Name, 50, paddedName, uppercaseHexDigits);
var attr = setup["UserModifiedName"];
if (attr != null)
attr.InnerText = "1";