#
#  Script for otv4vdr plugin.
#
#  It records the EPG within VDR.
#
#  You may update it in case of new release of 'load-otc-epg.py' script
#  Source: http://vdr.bluox.org/download/EPG/otvepg.zip
# 
# $1 -> VDR Config directory
# $2 -> Int 'EPG Updated' message
#

PATH=/usr/local/src/VDR:$PATH

cd "$1/otv4vdr"
./load-otv-epg.py epg.dat channels >> epg.log
svdrpsend.pl MESG "$2";
rm -f epg.dat epg.log
