- Samsung .scm: added support for Skip + Hidden flags for D-H series DVB-T/C

- negative mask values in a .ini file now invert the value of the flag (clear instead of set and v.v.)
This commit is contained in:
hbeham
2017-10-29 15:45:35 +01:00
parent 1f92149c88
commit 5e81167b3d
7 changed files with 47 additions and 10 deletions

View File

@@ -165,6 +165,8 @@
maskDeleted = 0x01
offSignalSource = 10
offQam = 12
offSkip = 13
maskSkip = 0x01
offBandwidth = 14
offServiceType = 15
offCodec = 16
@@ -172,7 +174,8 @@
offVRes = 22
offEncrypted = 24
maskEncrypted = 0x01
offFrameRate = 25
offHidden = 25
maskHidden = 0x01
offSymbolRate = 28
offLock = 31
maskLock = 0x01
@@ -201,6 +204,8 @@
maskDeleted = 0x01
offSignalSource = 10
offQam = 12
offSkip = 13
maskSkip = 0x01
offBandwidth = 14
offServiceType = 15
offCodec = 16
@@ -208,7 +213,8 @@
offVRes = 22
offEncrypted = 24
maskEncrypted = 0x01
offFrameRate = 25
offHidden = 25
maskHidden = 0x01
offSymbolRate = 28
offLock = 31
maskLock = 0x01

View File

@@ -21,6 +21,8 @@ namespace ChanSort.Loader.Samsung
private const string _Checksum = "offChecksum";
// DVB
private const string _Skip = "Skip";
private const string _Hidden = "Hidden";
private const string _ServiceId = "offServiceId";
private const string _VideoPid = "offVideoPid";
private const string _AudioPid = "offAudioPid";
@@ -59,6 +61,8 @@ namespace ChanSort.Loader.Samsung
this.Name = data.GetString(_Name, data.Settings.GetInt("lenName"));
this.Favorites = this.ParseRawFavorites();
this.Lock = data.GetFlag(_Lock);
this.Hidden = data.GetFlag(_Hidden);
this.Skip = data.GetFlag(_Skip);
this.Encrypted = data.GetFlag(_Encrypted);
this.IsDeleted = data.GetFlag(_Deleted, false) || !data.GetFlag(_IsActive, true);
if (this.IsDeleted)
@@ -144,6 +148,8 @@ namespace ChanSort.Loader.Samsung
mapping.SetFlag(_Lock, this.Lock);
mapping.SetFlag(_Deleted, this.NewProgramNr < 0);
mapping.SetFlag(_IsActive, this.NewProgramNr >= 0);
mapping.SetFlag(_Skip, this.Skip);
mapping.SetFlag(_Hidden, this.Hidden);
if (this.Encrypted != null)
mapping.SetFlag(_Encrypted, this.Encrypted.Value);
this.UpdateChecksum();

View File

@@ -3,7 +3,6 @@ using System.IO;
using System.Reflection;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ChanSort.Api;
using ICSharpCode.SharpZipLib.Zip;