0002680: XMLTV delete EPG on import is not working (1 Viewer)

MediaPortal-Bot

Worlds greatest bot!
March 26, 2007
3,715
180
Home Country
Germany Germany
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 (Note: 0000049 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.

http://mantis.team-mediaportal.com/view.php?id=2680

Open the issue in Mantis...
 

Users who are viewing this thread

Top Bottom