- Samsung J series: fixed deleting of channels

- LG GlobalClone: modified channel names were not written to the file
- LG GlobalClone: ask whether the conflicting xx*.TLL files should be
  renamed so that the TV can import the GlobalClone file.
- LG GlobalClone: improved support for old file format with may
  have caused errors due to invalid XML characters inside the file.
- Panasonic: re-enabled channel lists with gaps in the numbers
- Update-Check: looking for latest version at github.com
- Detecting corrupted files with 0 size or all bytes with value 0
- upgraded to latest DevExpress version
This commit is contained in:
hbeham
2015-09-19 23:24:31 +02:00
parent 43cfca4d0b
commit b0277bd4a3
30 changed files with 638 additions and 442 deletions

View File

@@ -1,10 +1,14 @@
SERVICETYPE;Number;Description
SERVICETYPE;01;SD-TV
SERVICETYPE;02;Radio
SERVICETYPE;03;Teletext
SERVICETYPE;07;FM-Radio
SERVICETYPE;10;AAC Radio
SERVICETYPE;12;Data/Test
SERVICETYPE;17;HD-TV
SERVICETYPE;22;SD-TV
SERVICETYPE;25;HD-TV
SERVICETYPE;31;4K-TV
SERVICETYPE;31;UHD-TV
SERVICETYPE;211;Option
ONID;Start;End;Name;Operator
1 SERVICETYPE;Number;Description SERVICETYPE Number Description
2 SERVICETYPE;01;SD-TV SERVICETYPE 01 SD-TV
3 SERVICETYPE;02;Radio SERVICETYPE 02 Radio
4 SERVICETYPE 03 Teletext
5 SERVICETYPE 07 FM-Radio
6 SERVICETYPE 10 AAC Radio
7 SERVICETYPE;12;Data/Test SERVICETYPE 12 Data/Test
8 SERVICETYPE 17 HD-TV
9 SERVICETYPE;22;SD-TV SERVICETYPE 22 SD-TV
10 SERVICETYPE;25;HD-TV SERVICETYPE 25 HD-TV
11 SERVICETYPE;31;4K-TV SERVICETYPE 31 UHD-TV
12 SERVICETYPE;211;Option SERVICETYPE 211 Option
13 ONID;Start;End;Name;Operator ONID Start End
14 ONID;0x0000;0x0000;(Reserved);(Reserved) ONID 0x0000 0x0000

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ChanSort.Api
{
@@ -118,5 +119,18 @@ namespace ChanSort.Api
return bytes;
}
#endregion
#region HexEncode()
public static string HexEncode(byte[] bytes, bool uppercase = false)
{
const string HexDigitsLower = "0123456789abcdef";
const string HexDigitsUpper = "0123456789ABCDEF";
var hexDigits = uppercase ? HexDigitsUpper : HexDigitsLower;
var sb = new StringBuilder(bytes.Length * 2);
foreach (byte b in bytes)
sb.Append(hexDigits[b >> 4]).Append(hexDigits[b & 0x0F]);
return sb.ToString();
}
#endregion
}
}