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.
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.