mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-16 12:22:03 +01:00
fixed problem with Toshiba lists that refer to invalid satellites
This commit is contained in:
@@ -193,9 +193,10 @@ namespace ChanSort.Loader.Toshiba
|
||||
while (r.Read())
|
||||
{
|
||||
int satId = r.IsDBNull(0) ? 0 : r.GetInt32(0);
|
||||
string format = satId != 0 ? "S{0}-{1}-{2}-{3}" : "C-{1}-{2}-{3}";
|
||||
string uid = string.Format(format, this.DataRoot.Satellites.TryGet(satId).OrbitalPosition,
|
||||
r.GetInt32(1), r.GetInt32(2), r.GetInt32(3));
|
||||
var sat = this.DataRoot.Satellites.TryGet(satId);
|
||||
var satPos = sat != null ? sat.OrbitalPosition : "0.0";
|
||||
string format = sat != null ? "S{0}-{1}-{2}-{3}" : "C-{1}-{2}-{3}";
|
||||
string uid = string.Format(format, satPos, r.GetInt32(1), r.GetInt32(2), r.GetInt32(3));
|
||||
this.channelInfoByUid[uid] = r.GetInt32(4) != 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace ChanSort.Ui
|
||||
{
|
||||
public partial class MainForm : XtraForm
|
||||
{
|
||||
public const string AppVersion = "v2014-06-08.2";
|
||||
public const string AppVersion = "v2014-06-08.3";
|
||||
|
||||
private const int MaxMruEntries = 10;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Version v2014-06-08.2 =====================================================
|
||||
Version v2014-06-08.3 =====================================================
|
||||
|
||||
Changes:
|
||||
- added support for LG xxLB580V analog and DVB-C/T channel lists
|
||||
- fixed problem with Toshiba lists that refer to invalid satellites
|
||||
|
||||
The complete change log can be found at the end of this document
|
||||
|
||||
@@ -115,6 +115,9 @@ OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Change log ================================================================
|
||||
|
||||
2014-06-08.3
|
||||
- fixed problem with Toshiba lists that refer to invalid satellites
|
||||
|
||||
2014-06-08.2
|
||||
- added support for LG xxLB580V analog and DVB-C/T channel lists
|
||||
|
||||
|
||||
Reference in New Issue
Block a user