mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-06 14:57:13 +02:00
- ChanSort didn't work properly for Turkish (and other system locales) that don't translate ".bin" to uppercase
".BIN" and ".BIN" to lowercase ".bin". - Philips: Removing a channel from a list is no longer possible (because it is not supported by the TV's import). When saving a file, all unsorted channels will be placed at the end of the list. - support for Philips Repair\mgr_chan_s_fta.db lists is now read-only. Files can be used as a reference list, but modifying them won't be possible.
This commit is contained in:
@@ -113,7 +113,7 @@ namespace ChanSort.Loader.LG.Binary
|
||||
|
||||
private void ReadConfigurationFromIniFile()
|
||||
{
|
||||
string iniFile = this.GetType().Assembly.Location.ToLower().Replace(".dll", ".ini");
|
||||
string iniFile = this.GetType().Assembly.Location.ToLowerInvariant().Replace(".dll", ".ini");
|
||||
IniFile ini = new IniFile(iniFile);
|
||||
foreach (var section in ini.Sections)
|
||||
{
|
||||
@@ -142,7 +142,7 @@ namespace ChanSort.Loader.LG.Binary
|
||||
{
|
||||
this.InitUiFactory();
|
||||
|
||||
string basename = (Path.GetFileNameWithoutExtension(this.FileName) ?? "").ToUpper();
|
||||
string basename = (Path.GetFileNameWithoutExtension(this.FileName) ?? "").ToUpperInvariant();
|
||||
if (basename.StartsWith("XXLH250"))
|
||||
this.specialModel = SpecialHandlingModels.LH250;
|
||||
else if (basename.StartsWith("XXLH3000"))
|
||||
@@ -1131,7 +1131,7 @@ Due to issues with most recent LG firmwares such lists can no longer be modified
|
||||
set
|
||||
{
|
||||
if (value.Length < 3 || this.settingsBlockOffset == 0 || this.settingsBlockSize < 8) return;
|
||||
value = value.ToUpper();
|
||||
value = value.ToUpperInvariant();
|
||||
int off = this.settingsBlockOffset + 4 + 4 + 2;
|
||||
for (int i = 0; i < 3; i++)
|
||||
this.fileContent[off--] = (byte)value[i];
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace ChanSort.Loader.GlobalClone
|
||||
|
||||
tp.FrequencyInMhz = (int) node["frequency"];
|
||||
tp.Number = (int) node["channelIdx"];
|
||||
var pol = ((string) node["polarization"]).ToLower();
|
||||
var pol = ((string) node["polarization"]).ToLowerInvariant();
|
||||
tp.Polarity = pol.StartsWith("h") ? 'H' : pol.StartsWith("V") ? 'V' : '\0';
|
||||
tp.TransportStreamId = (int) node["TSID"];
|
||||
tp.OriginalNetworkId = (int)node["ONID"];
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace ChanSort.Loader.GlobalClone
|
||||
// ask whether binary TLL file should be deleted
|
||||
var dir = Path.GetDirectoryName(this.FileName) ?? ".";
|
||||
var binTlls = Directory.GetFiles(dir, "xx" + series + "*.tll");
|
||||
if (binTlls.Length > 0 && !(binTlls.Length == 1 && Path.GetFileName(binTlls[0]).ToLower() == Path.GetFileName(this.FileName).ToLower()))
|
||||
if (binTlls.Length > 0 && !(binTlls.Length == 1 && Path.GetFileName(binTlls[0]).ToLowerInvariant() == Path.GetFileName(this.FileName).ToLowerInvariant()))
|
||||
{
|
||||
var txt = Resource.GcSerializer_ReadModelInfo_ModelWarning;
|
||||
if (Api.View.Default != null && Api.View.Default.MessageBox(txt, "LG GlobalClone", View.MessageBoxButtons.YesNo, View.MessageBoxIcon.Information) == View.DialogResult.Yes)
|
||||
@@ -585,7 +585,7 @@ namespace ChanSort.Loader.GlobalClone
|
||||
|
||||
private int HexNibble(char hexDigit)
|
||||
{
|
||||
return hexDigit >= '0' && hexDigit <= '9' ? hexDigit - '0' : (Char.ToUpper(hexDigit) - 'A') + 10;
|
||||
return hexDigit >= '0' && hexDigit <= '9' ? hexDigit - '0' : (Char.ToUpperInvariant(hexDigit) - 'A') + 10;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user