mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-22 23:32:04 +01:00
- Samsung Channel Digial Sat support
- Attempt to fix LG analog channel list issues
This commit is contained in:
@@ -26,8 +26,8 @@ namespace ChanSort.Api
|
||||
MaskTvRadio = 0x0300,
|
||||
Tv = 0x0100,
|
||||
Radio = 0x0200,
|
||||
TvAndRadio= Tv|Radio,
|
||||
|
||||
TvAndRadio = Tv | Radio,
|
||||
|
||||
// bit 13-16: Preset list selector (AstraHD+, Freesat, TivuSat, CanalDigitalSat, ... for Samsung)
|
||||
MaskProvider = 0xFC00,
|
||||
StandardSat = 0 << 12,
|
||||
@@ -39,18 +39,19 @@ namespace ChanSort.Api
|
||||
StandardCable = 0 << 12,
|
||||
CablePrime = 1 << 12,
|
||||
|
||||
AnalogC=Analog + Cable,
|
||||
AnalogT=Analog + Antenna,
|
||||
AnalogCT=Analog + Cable + Antenna,
|
||||
DvbC = Digital + Cable,
|
||||
DvbT= Digital + Antenna,
|
||||
DvbCT= Digital + Cable + Antenna,
|
||||
DvbS= Digital + Sat,
|
||||
AnalogC = Analog + Cable,
|
||||
AnalogT = Analog + Antenna,
|
||||
AnalogCT = Analog + Cable + Antenna,
|
||||
DvbC = Digital + Cable,
|
||||
DvbT = Digital + Antenna,
|
||||
DvbCT = Digital + Cable + Antenna,
|
||||
DvbS = Digital + Sat,
|
||||
|
||||
CablePrimeD = Digital + Cable + CablePrime,
|
||||
HdPlusD = Digital + Sat + AstraHdPlus,
|
||||
FreesatD = Digital + Sat + Freesat,
|
||||
TivuSatD = Digital + Sat + TivuSat
|
||||
TivuSatD = Digital + Sat + TivuSat,
|
||||
CanalDigitalSatD = Digital + Sat + CanalDigital
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace ChanSort.Loader.LG
|
||||
mapping.SetFlag(_Deleted, true);
|
||||
mapping.SetByte("off" + _Moved, 0); //skip,lock,hide,moved
|
||||
}
|
||||
else
|
||||
else if ((this.SignalSource&SignalSource.Digital) != 0)
|
||||
{
|
||||
mapping.SetFlag(_Moved, true);
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace ChanSort.Loader.Samsung
|
||||
private readonly ChannelList hdplusChannels = new ChannelList(SignalSource.HdPlusD | SignalSource.TvAndRadio, "Astra HD+");
|
||||
private readonly ChannelList freesatChannels = new ChannelList(SignalSource.FreesatD | SignalSource.TvAndRadio, "Freesat");
|
||||
private readonly ChannelList tivusatChannels = new ChannelList(SignalSource.TivuSatD | SignalSource.TvAndRadio, "TivuSat");
|
||||
private readonly ChannelList canalDigitalChannels = new ChannelList(SignalSource.CanalDigitalSatD | SignalSource.TvAndRadio, "Canal Digital Sat");
|
||||
|
||||
private readonly Dictionary<int, decimal> avbtFrequency = new Dictionary<int, decimal>();
|
||||
private readonly Dictionary<int, decimal> avbcFrequency = new Dictionary<int, decimal>();
|
||||
@@ -44,6 +45,7 @@ namespace ChanSort.Loader.Samsung
|
||||
private byte[] primeFileContent;
|
||||
private byte[] freesatFileContent;
|
||||
private byte[] tivusatFileContent;
|
||||
private byte[] canalDigitalFileContent;
|
||||
private ModelConstants c;
|
||||
private Dictionary<int, string> serviceProviderNames;
|
||||
|
||||
@@ -114,6 +116,7 @@ namespace ChanSort.Loader.Samsung
|
||||
ReadDvbctChannels(zip, "map-CablePrime_D", this.primeChannels, out this.primeFileContent, this.dvbcFrequency);
|
||||
ReadDvbctChannels(zip, "map-FreesatD", this.freesatChannels, out this.freesatFileContent, this.dvbcFrequency);
|
||||
ReadDvbctChannels(zip, "map-TivusatD", this.tivusatChannels, out this.tivusatFileContent, this.dvbcFrequency);
|
||||
ReadDvbctChannels(zip, "map-CanalDigitalSatD", this.canalDigitalChannels, out this.canalDigitalFileContent, this.dvbcFrequency);
|
||||
ReadSatellites(zip);
|
||||
ReadTransponder(zip, "TransponderDataBase.dat");
|
||||
ReadTransponder(zip, "UserTransponderDataBase.dat");
|
||||
@@ -591,6 +594,7 @@ namespace ChanSort.Loader.Samsung
|
||||
this.SaveChannels(zip, "map-CablePrime_D", this.primeChannels, this.primeFileContent);
|
||||
this.SaveChannels(zip, "map-FreesatD", this.freesatChannels, this.freesatFileContent);
|
||||
this.SaveChannels(zip, "map-TivusatD", this.tivusatChannels, this.tivusatFileContent);
|
||||
this.SaveChannels(zip, "map-CanalDigitalSatD", this.canalDigitalChannels, this.canalDigitalFileContent);
|
||||
zip.CommitUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace ChanSort.Ui
|
||||
{
|
||||
public partial class MainForm : XtraForm
|
||||
{
|
||||
public const string AppVersion = "v2014-01-19";
|
||||
public const string AppVersion = "v2014-01-27";
|
||||
|
||||
private const int MaxMruEntries = 10;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ struct LA256_AnalogChannel
|
||||
word LogicalProgramNr2;
|
||||
word ChannelTransponder4;
|
||||
byte Favorites2;
|
||||
byte LockSkipHide;
|
||||
TLL_EditFlags EditFlags;
|
||||
word SID2;
|
||||
byte ServiceType;
|
||||
byte CH_NameLength2;
|
||||
@@ -130,19 +130,22 @@ struct LA256_DvbCtChannel
|
||||
byte CH_NameLength1;
|
||||
byte t4;
|
||||
word SID1;
|
||||
byte t5a[38];
|
||||
byte t5a[37];
|
||||
byte NitVersion;
|
||||
word ChannelTransponder2;
|
||||
dword Frequency;
|
||||
byte t6[6];
|
||||
word ONID;
|
||||
word TSID;
|
||||
byte t7[32];
|
||||
word NID;
|
||||
dword SpecialData;
|
||||
byte t7[26];
|
||||
word ChannelTransponder3;
|
||||
word ProgramNr2;
|
||||
word LogicalProgramNr2;
|
||||
word ChannelTransponder4;
|
||||
byte Favorites2;
|
||||
byte LockSkipHide;
|
||||
TLL_EditFlags EditFlags;
|
||||
word SID2;
|
||||
byte ServiceType;
|
||||
byte CH_NameLength2;
|
||||
@@ -204,7 +207,7 @@ struct TLL92_SatChannel
|
||||
word CH_NumberFixed;
|
||||
word TP_Number2;
|
||||
byte FavCrypt;
|
||||
byte LockSkipHide;
|
||||
TLL_EditFlags EditFlags;
|
||||
word SID;
|
||||
byte ServiceType;
|
||||
byte CH_NameLength;
|
||||
|
||||
@@ -52,7 +52,7 @@ struct LA260_AnalogChannel
|
||||
word LogicalProgramNr2;
|
||||
word ChannelTransponder4;
|
||||
byte Favorites2;
|
||||
byte LockSkipHide;
|
||||
TLL_EditFlags EditFlags;
|
||||
word SID2;
|
||||
byte ServiceType;
|
||||
byte CH_NameLength2;
|
||||
@@ -130,19 +130,22 @@ struct LA260_DvbCtChannel
|
||||
byte CH_NameLength1;
|
||||
byte t4;
|
||||
word SID1;
|
||||
byte t5a[42];
|
||||
byte t5a[41];
|
||||
byte NitVersion;
|
||||
word ChannelTransponder2;
|
||||
dword Frequency;
|
||||
byte t6[6];
|
||||
word ONID;
|
||||
word TSID;
|
||||
byte t7[32];
|
||||
word NID;
|
||||
dword SpecialData;
|
||||
byte t7[26];
|
||||
word ChannelTransponder3;
|
||||
word ProgramNr2;
|
||||
word LogicalProgramNr2;
|
||||
word ChannelTransponder4;
|
||||
byte Favorites2;
|
||||
byte LockSkipHide;
|
||||
TLL_EditFlags EditFlags;
|
||||
word SID2;
|
||||
byte ServiceType;
|
||||
byte CH_NameLength2;
|
||||
@@ -204,7 +207,7 @@ struct TLL92_SatChannel
|
||||
word CH_NumberFixed;
|
||||
word TP_Number2;
|
||||
byte FavCrypt;
|
||||
byte LockSkipHide;
|
||||
TLL_EditFlags EditFlags;
|
||||
word SID;
|
||||
byte ServiceType;
|
||||
byte CH_NameLength;
|
||||
|
||||
@@ -42,6 +42,14 @@ enum LH_SignalSource : byte
|
||||
Cable = 3
|
||||
};
|
||||
|
||||
enum TLL_EditFlags : byte
|
||||
{
|
||||
Lock = 1,
|
||||
Skip = 2,
|
||||
Hide = 3,
|
||||
CustChNr = 64
|
||||
};
|
||||
|
||||
struct TLL_SettingsBlock
|
||||
{
|
||||
dword BlockSize;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
c:\cygwin\bin\date "+%%Y-%%m-%%d">%TEMP%\date.txt
|
||||
set /p curdate=<%temp%\date.txt
|
||||
set target=%cd%\..\ChanSort_%curdate%
|
||||
set DXversion=13.1
|
||||
set DXversion=13.2
|
||||
mkdir "%target%" 2>nul
|
||||
del /s /q "%target%\*"
|
||||
copy debug\ChanSort.exe* "%target%"
|
||||
@@ -28,13 +28,17 @@ pause
|
||||
goto:eof
|
||||
|
||||
:copyDll
|
||||
echo Copying DevExpress %*
|
||||
set source="C:\Program Files (x86)\DevExpress\DXperience %DXversion%\Bin\Framework\DevExpress.%*.v%DXversion%.dll"
|
||||
echo Copying DevExpress %1
|
||||
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\DevExpress.%1.v%DXversion%.dll"
|
||||
if exist %source% copy %source% "%target%"
|
||||
set source="C:\Program Files (x86)\DevExpress\DXperience %DXversion%\Bin\Framework\DevExpress.%*.v%DXversion%.Core.dll"
|
||||
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\DevExpress.%1.v%DXversion%.Core.dll"
|
||||
if exist %source% copy %source% "%target%"
|
||||
set source="C:\Program Files (x86)\DevExpress\DXperience %DXversion%\Bin\Framework\de\DevExpress.%*.v%DXversion%.resources.dll"
|
||||
if exist %source% copy %source% "%target%\de"
|
||||
set source="C:\Program Files (x86)\DevExpress\DXperience %DXversion%\Bin\Framework\de\DevExpress.%*.v%DXversion%.Core.resources.dll"
|
||||
if exist %source% copy %source% "%target%\de"
|
||||
for %%l in (de pt) do call :copyLangDll %1 %%l
|
||||
goto:eof
|
||||
|
||||
:copyLangDll
|
||||
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\%2\DevExpress.%1.v%DXversion%.resources.dll"
|
||||
if exist %source% copy %source% "%target%\%2"
|
||||
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\%2\DevExpress.%1.v%DXversion%.Core.resources.dll"
|
||||
if exist %source% copy %source% "%target%\%2"
|
||||
goto:eof
|
||||
12
readme.txt
12
readme.txt
@@ -1,8 +1,7 @@
|
||||
Version v2014-01-19 =======================================================
|
||||
Version v2014-01-27 =======================================================
|
||||
|
||||
Changes:
|
||||
- show channel "Provider" information for Samsung C,D and E series DVB-C/T
|
||||
and Satellite channel lists (no data available for Astra HD+)
|
||||
- Added support for Samsung "Channel Digital Sat" channel lists
|
||||
|
||||
The complete change log can be found at the end of this document
|
||||
|
||||
@@ -112,6 +111,13 @@ OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Change log ================================================================
|
||||
|
||||
2014-01-27
|
||||
- Added support for Samsung "Channel Digital Sat" channel lists
|
||||
|
||||
2014-01-21
|
||||
- show channel "Provider" information for Samsung C,D and E series DVB-C/T
|
||||
and Satellite channel lists (no data available for Astra HD+)
|
||||
|
||||
2013-12-22
|
||||
- Analog channel names loaded from a reference file (.csv, .csm, .tll, ...)
|
||||
are now copied into and saved with the current TV data file .
|
||||
|
||||
Reference in New Issue
Block a user