Hi,

since tv_grab_tv_today does not work, i tried to use the EPG data from the
DVB-T signal.
I found the tool tv_grab_dvb from Mary Bryars:
http://www.darkskiez.co.uk/index.php?page=tv_grab_dvb

My first try was with this little script:

for freq in `cut channels.conf -d ":" -f 2|sort -u`; do dvbtune -q -c 0 -f
$freq 2>/dev/null; ./tv_grab_dvb >> ./epg.xml; done;

And it worked...

It is important to run tv_grab_dvb direct after tuning to a DVB-T frequence.

Now i can get EPG data without grabbing data with XMLTV from the TVToday
Homepage.

This is my final script:
------snip--------------
#/bin/sh
TV_XML="/opt/freevo/epg/TV.xml";
HEADER="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE tv SYSTEM
\"xmltv.dtd\">\n<tv generator-info-name=\"dvb-epg-gen\">";
FOOTER="</tv>";
LOG="/var/log/dvb_egp_grep.log";
frequences=`cut channels.conf -d : -f 2|sort -u`;
DATUM=`date`;

echo "--------------------------------------" >> $LOG;
echo $DATUM >> $LOG;

for freq in $frequences
do
 dvbtune -q -c 0 -f $freq 2>>$LOG;
 ./tv_grab_dvb -s -u -d -c -f ./epg_$freq.xml 2>>$LOG;
 lines=`wc -l ./epg_$freq.xml|cut -f 1 -d " "`;

 #Kopf und Fußzeilen entfernen; Tempfile erstellen
 head -n $(($lines-1)) ./epg_$freq.xml|tail -n $(($lines-4)) >
./epg_tmp_$freq.xml
done;

echo -e $HEADER > $TV_XML;
for datafile in epg_tmp_*
do
 cat $datafile >> $TV_XML;
done;
echo $FOOTER >> $TV_XML;

## Tempfiles löschen
rm epg_tmp_*
--------snip-------------

Ciao
Togeis


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to