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

XMLTV plugin fails to notice when files listed in tvguide.LST are changed

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0 RC4
    • None
    • TvServer
    • None

    Description

      XMLTV import checks the filedate/time of tvguide.lst (code apparently copied directly from checking tvguide.xml). It should check the filetimes of the filenames listed in tvguide.lst

      h4. Steps to Reproduce
      Set up xmltv plugin to import files listed in TVguide.lst (and NOT tvguide.xml). Change one of the files listed in tvguide.lst, and notice that nothing is imported.


      h4. Additional Information
      The faulty code is in xmltvimporter.cs around line 505:
            fileName = folder + @"\tvguide.lst";

            if (layer.GetSetting("xmlTvImportLST", "true").Value == "true" && System.IO.File.Exists(fileName))
            {
              DateTime fileTime = DateTime.Parse(System.IO.File.GetLastWriteTime(fileName).ToString()); // for rounding errors!!!
              if (lastTime < fileTime)

      The code checks the filedate of tvguide.lst rather than the files listed therein.

      Attachments

        1. XmlTvImport.zip
          7 kB
        2. XmlTvImport_v3.zip
          7 kB
        3. XmlTvImport_v2.zip
          7 kB

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: