mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-06 11:07:23 +02:00
-upgraded to DevExpress 14.1.7 library
- fixed unit text expectation files for LG (the "moved" flag is no longer set on analog channels) - fixed reading Samsung channel lists containing empty satellite records - disabled individual sorting of favorite lists for Samsung F and H series. It appears that only the E series firmware supports this feature. - disabled deleting of channels from LG's GlobalClone channel lists because the TV does not support this. Instead they are appended at the end of the list. - added support for Samsung "map-AirCableMixedA" and "map-AirCableMixedD" channel lists (used by some hospitality TVs) - disabled editing of channel names for Panasonic lists to prevent side effects after saving (e.g. incorrect alphabetical sorting shown on TV)
This commit is contained in:
@@ -232,15 +232,5 @@ namespace ChanSort.Loader.Panasonic
|
||||
shortName = sbShort.ToString();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region UpdateRawData()
|
||||
public override void UpdateRawData()
|
||||
{
|
||||
if (this.IsNameModified)
|
||||
this.RawName = Encoding.UTF8.GetBytes(this.Name);
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -306,7 +306,7 @@ namespace ChanSort.Loader.Panasonic
|
||||
{
|
||||
DepencencyChecker.AssertVc2010RedistPackageX86Installed();
|
||||
|
||||
this.Features.ChannelNameEdit = true;
|
||||
this.Features.ChannelNameEdit = false; // due to the chaos with binary data inside the "sname" string column, writing back a name has undesired side effects
|
||||
this.DataRoot.SortedFavorites = true;
|
||||
|
||||
this.DataRoot.AddChannelList(this.avbtChannels);
|
||||
@@ -589,7 +589,7 @@ order by s.ntype,major_channel
|
||||
#region WriteChannels()
|
||||
private void WriteChannels(SQLiteCommand cmd, ChannelList channelList)
|
||||
{
|
||||
cmd.CommandText = "update SVL set major_channel=@progNr, sname=@name, profile1index=@fav1, profile2index=@fav2, profile3index=@fav3, profile4index=@fav4, child_lock=@lock, skip=@skip where rowid=@rowid";
|
||||
cmd.CommandText = "update SVL set major_channel=@progNr, profile1index=@fav1, profile2index=@fav2, profile3index=@fav3, profile4index=@fav4, child_lock=@lock, skip=@skip where rowid=@rowid";
|
||||
cmd.Parameters.Clear();
|
||||
cmd.Parameters.Add(new SQLiteParameter("@rowid", DbType.Int32));
|
||||
cmd.Parameters.Add(new SQLiteParameter("@progNr", DbType.Int32));
|
||||
@@ -597,7 +597,6 @@ order by s.ntype,major_channel
|
||||
cmd.Parameters.Add(new SQLiteParameter("@fav2", DbType.Int32));
|
||||
cmd.Parameters.Add(new SQLiteParameter("@fav3", DbType.Int32));
|
||||
cmd.Parameters.Add(new SQLiteParameter("@fav4", DbType.Int32));
|
||||
cmd.Parameters.Add(new SQLiteParameter("@name", DbType.Binary));
|
||||
cmd.Parameters.Add(new SQLiteParameter("@lock", DbType.Int32));
|
||||
cmd.Parameters.Add(new SQLiteParameter("@skip", DbType.Int32));
|
||||
cmd.Prepare();
|
||||
@@ -608,12 +607,10 @@ order by s.ntype,major_channel
|
||||
continue;
|
||||
if (channel.NewProgramNr < 0 || channel.OldProgramNr < 0)
|
||||
continue;
|
||||
channel.UpdateRawData();
|
||||
cmd.Parameters["@rowid"].Value = channel.RecordIndex;
|
||||
cmd.Parameters["@progNr"].Value = channel.NewProgramNr;
|
||||
for (int fav = 0; fav < 4; fav++)
|
||||
cmd.Parameters["@fav" + (fav + 1)].Value = Math.Max(0, channel.FavIndex[fav]);
|
||||
cmd.Parameters["@name"].Value = channel.RawName;
|
||||
cmd.Parameters["@lock"].Value = channel.Lock;
|
||||
cmd.Parameters["@skip"].Value = channel.Skip;
|
||||
cmd.ExecuteNonQuery();
|
||||
|
||||
Reference in New Issue
Block a user