mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 17:16:31 +02:00
- rewrote LG data file cleanup. Now it complete rewrites the DVB-S channel information
- fixed opening editor when typing on keyboard - persisting more user settings
This commit is contained in:
@@ -127,5 +127,21 @@ namespace ChanSort.Api
|
||||
return this.channels.Where(c => c.NewProgramNr == newProgNr).ToList();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region RemoveChannel()
|
||||
public void RemoveChannel(ChannelInfo channel)
|
||||
{
|
||||
this.channels.Remove(channel);
|
||||
var list = this.channelByUid.TryGet(channel.Uid);
|
||||
if (list != null && list.Contains(channel))
|
||||
list.Remove(channel);
|
||||
list = this.channelByName.TryGet(channel.Name);
|
||||
if (list != null && list.Contains(channel))
|
||||
list.Remove(channel);
|
||||
var chan = this.channelByProgNr.TryGet(channel.OldProgramNr);
|
||||
if (ReferenceEquals(chan, channel))
|
||||
this.channelByProgNr.Remove(channel.OldProgramNr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
public Satellite Satellite { get; set; }
|
||||
public decimal FrequencyInMhz { get; set; }
|
||||
public int Number { get; set; }
|
||||
public int SymbolRate { get; set; }
|
||||
public virtual int SymbolRate { get; set; }
|
||||
public char Polarity { get; set; }
|
||||
public int OriginalNetworkId { get; set; }
|
||||
public int TransportStreamId { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user