Danish ONTV will only download once
Posted: Thu Mar 13, 2008 3:39 pm
Even though I've already made a temporary solution to this problem, I'm going to post it anyway. Mainly because others could have the same problem, but also to give you a chance to make a permanent solution. I'm using XMLTV GUI 3.09.03W
The problem is, that the first time I downloaded the xmltv file from ontv.dk it worked fine, but all later attempts would just recycle the first download.
When pressing "Grab Listings" I get the following log:
14:42:39 - Starting pass 1 of grabber DK_ONTV
14:42:39 - Downloading http://ontv.dk/xmltv/(deleted: my personal site)
14:42:39 - Processing XML
14:42:40 - Finished pass 1 of grabber DK_ONTV
14:42:40 - 4091 programs found
14:42:40 - Combining Grabber Programs
14:42:40 - Finished Combining Grabber Programs
14:42:40 - Writing XML
14:42:41 - XML Written
As you can see there is no line saying "Clearing cache". I found out, that if I deleted the cache file, it would work, but since it is not practical to do this manually every day, I made the following batch file, witch will delete the cache and start XMLTV GUI with the /grab parameter:
CD "C:\Programmer\XMLTV GUI\cache\DK_ONTV"
DEL "C:\Programmer\XMLTV GUI\cache\DK_ONTV\*.*" /F /Q
CD "C:\Programmer\XMLTV GUI\"
START XmltvGUI.exe /GRAB
(Copy/paste to notepad, change paths to your system, save as yourname.bat.)
Even though it works now, it's not a very elegant solution, and the function should be in the program, not in a batch file.
If you need to test it, ontv.dk has a xmltv test site called:
http://ontv.dk/xmltv/c81e728d9d4c2f636f067f89cc14862c
The problem is, that the first time I downloaded the xmltv file from ontv.dk it worked fine, but all later attempts would just recycle the first download.
When pressing "Grab Listings" I get the following log:
14:42:39 - Starting pass 1 of grabber DK_ONTV
14:42:39 - Downloading http://ontv.dk/xmltv/(deleted: my personal site)
14:42:39 - Processing XML
14:42:40 - Finished pass 1 of grabber DK_ONTV
14:42:40 - 4091 programs found
14:42:40 - Combining Grabber Programs
14:42:40 - Finished Combining Grabber Programs
14:42:40 - Writing XML
14:42:41 - XML Written
As you can see there is no line saying "Clearing cache". I found out, that if I deleted the cache file, it would work, but since it is not practical to do this manually every day, I made the following batch file, witch will delete the cache and start XMLTV GUI with the /grab parameter:
CD "C:\Programmer\XMLTV GUI\cache\DK_ONTV"
DEL "C:\Programmer\XMLTV GUI\cache\DK_ONTV\*.*" /F /Q
CD "C:\Programmer\XMLTV GUI\"
START XmltvGUI.exe /GRAB
(Copy/paste to notepad, change paths to your system, save as yourname.bat.)
Even though it works now, it's not a very elegant solution, and the function should be in the program, not in a batch file.
If you need to test it, ontv.dk has a xmltv test site called:
http://ontv.dk/xmltv/c81e728d9d4c2f636f067f89cc14862c