mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-03-13 23:40:16 +01: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user