Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
Description
In xmltv import plugin: The function to delete programs before import does not work. Todays EPG in my machine on many channels was a single show from ~5 am today lasting until 5am tomorrow. Reimporting EPG with delete all programs activated made no difference. amount of imported programs was also way too low (~49 where it should be thousands).
The xmltv file is not missing entries.
Adding this code back to XmlTvImporter.cs solves the issue:
Code:
if (layer.GetSetting("xmlTvDeleteBeforeImport", "true").Value == "true")
{
SqlBuilder sb = new SqlBuilder(StatementType.Delete, typeof(Program));
SqlStatement stmt = sb.GetStatement();
stmt.Execute();
}
However, we need a proper fix, because the above code has its own issues.
The xmltv file is not missing entries.
Adding this code back to XmlTvImporter.cs solves the issue:
Code:
if (layer.GetSetting("xmlTvDeleteBeforeImport", "true").Value == "true")
{
SqlBuilder sb = new SqlBuilder(StatementType.Delete, typeof(Program));
SqlStatement stmt = sb.GetStatement();
stmt.Execute();
}
However, we need a proper fix, because the above code has its own issues.