Usually I change the TV.xml file only if the new was correctly created.
You can use a shell script wrapper to do this

First set the XMLTV_FILE = '/home/freevo/TV.xml'

than use this script in cron as example

#!/bin/sh


tv_grab_it_lt --config-file /home/freevo/.xmltv/tv_grab_it_lt.conf
--days 7 > /tmp/TV.xml 2>/tmp/TV.xml.error && rm /home/freevo/TV.xml &&
cp /tmp/TV.xml /home/freevo/

It should be enough

Claudio

Il giorno mar, 11/10/2005 alle 13.11 +0200, Alberto Hernando ha scritto:
> Hi.
> 
> I download the tv guide using a script in cron. In some cases, the net 
> connection may be wrong or the download may be corrupted. Then, all Freevo 
> says is "tv guide is corrupted" and that's all. You can't see an empty guide 
> or keep the old tv guide. Perhaps Freevo should handle these errors better, 
> but until then, is there any way to check whether the xml file is ok? I would 
> get it using xmltv, check it, and if it's ok, copy it to TV.xml in its proper 
> situation. Any way to do this?
> 
> Thanks
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Freevo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-users



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to