2008-11-20, 05:59 PM
For the main part I use Radio Times for my freeview XML guide data, but I also have a few French channels via DVB-S that come from some french tv guide web site.
The French website can be a bit flakey and sometimes produces an empty xml tv guide file. My update epg batch file grabs the data then copies the new data over the top of the old data.
so its something like:
I want to stop the final copy if the filesize is less than say 20kb, because this means there is no guide data in the file and I end up with no EPG data and I'd rather have the previous days download in the guide than nothing at all.
So how do I do that in a batch file?
The French website can be a bit flakey and sometimes produces an empty xml tv guide file. My update epg batch file grabs the data then copies the new data over the top of the old data.
so its something like:
Code:
"C:\epg\xmltv535\xmltv.exe" tv_grab_fr -slow --config-file C:\epg\sat.con --output C:\epg\sat0.xml
copy C:\epg\sat0.xml C:\epg\sat.xml
I want to stop the final copy if the filesize is less than say 20kb, because this means there is no guide data in the file and I end up with no EPG data and I'd rather have the previous days download in the guide than nothing at all.
So how do I do that in a batch file?
[SIZE="4"]Elmo Putney[/SIZE]