Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-3348

XMLTV delete EPG on import is not working

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.0 RC 1
    • None
    • XMLTV
    • 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.

      Attachments

        Activity

          People

            arion_p arion_p (Inactive)
            Seidelin Seidelin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: