- 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:
Horst Beham
2021-08-31 22:13:28 +02:00
parent b0b09de733
commit 1b250b2a18
24 changed files with 225 additions and 148 deletions

View File

@@ -213,7 +213,7 @@ namespace ChanSort.Api
{
if (string.IsNullOrWhiteSpace(input))
return 0;
if (input.Length > 2 && input[0] == '0' && char.ToLower(input[1]) == 'x')
if (input.Length > 2 && input[0] == '0' && char.ToLowerInvariant(input[1]) == 'x')
return int.Parse(input.Substring(2), NumberStyles.HexNumber);
if (int.TryParse(input, out var value))
return value;
@@ -226,7 +226,7 @@ namespace ChanSort.Api
{
if (string.IsNullOrWhiteSpace(input))
return 0;
if (input.Length > 2 && input[0] == '0' && char.ToLower(input[1]) == 'x')
if (input.Length > 2 && input[0] == '0' && char.ToLowerInvariant(input[1]) == 'x')
return long.Parse(input.Substring(2), NumberStyles.HexNumber);
if (long.TryParse(input, out var value))
return value;