mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-03-07 04:20:54 +01:00
- printing support for channel/fav lists
- fixed: modified Panasonic channel names are now saved - fixed: ClassCastException when saving Panasonic and Toshiba channel lists containing proxy-channels from a reference list
This commit is contained in:
@@ -237,7 +237,8 @@ namespace ChanSort.Loader.Panasonic
|
||||
#region UpdateRawData()
|
||||
public override void UpdateRawData()
|
||||
{
|
||||
|
||||
if (this.IsNameModified)
|
||||
this.RawName = Encoding.UTF8.GetBytes(this.Name);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -594,8 +594,11 @@ order by s.ntype,major_channel
|
||||
cmd.Parameters.Add(new SQLiteParameter("@lock", DbType.Int32));
|
||||
cmd.Parameters.Add(new SQLiteParameter("@skip", DbType.Int32));
|
||||
cmd.Prepare();
|
||||
foreach (DbChannel channel in channelList.Channels)
|
||||
foreach (ChannelInfo channelInfo in channelList.Channels)
|
||||
{
|
||||
var channel = channelInfo as DbChannel;
|
||||
if (channel == null) // skip reference list proxy channels
|
||||
continue;
|
||||
if (channel.NewProgramNr < 0 || channel.OldProgramNr < 0)
|
||||
continue;
|
||||
channel.UpdateRawData();
|
||||
|
||||
Reference in New Issue
Block a user