summaryrefslogtreecommitdiff
path: root/Tools/epg2timers/update_timers
blob: 3849841b663456f35d618bb731ae5a9f73a49adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# update_timers: retrieve a new "merkliste" from http://tvtv.de,
# convert it to vdr format and transmit it to vdr via SVDRP.

TOOLDIR="/home/cko/bin"
CHANPATH="/home/cko/VDR/channels.conf"

cd /tmp
rm -f merkliste.html

# if you have a slow dial up connection to your name server and/or ISP,
# this will avoid a timeout in get_merkliste.pl.
ping -c 2 www.tvtv.de

# get the "merkliste".
$TOOLDIR/get_merkliste.pl

if [ -s merkliste.html ] ; then
   # convert merkliste.html to timers.conf format and transmit it to vdr.
   $TOOLDIR/epg2timers $CHANPATH < merkliste.html | $TOOLDIR/loadvdr.pl
fi