Playtimer.sh

Aus VDR Wiki
Wechseln zu: Navigation, Suche

Script für den timercmds-patch.

Datei
$PATH/playtimer.sh
#!/bin/sh
#
# playtimer.sh
#
# source: http://vdrportal.de/board/thread.php?threadid=33778

PATH=$PREFIX/bin:$PREFIX/sbin:$PATH

I18N=${SOURCEDIR:?}/VDR/i18n.c
LANGUAGE=( `grep -s ^OSDLanguage ${VDRCONFIG:?}/setup.conf` )

at now <<EOT
svdrpsend.pl -p ${VDR_PORT:-2001} LSTR >/dev/null
if [ "$8" -gt 0 ] ; then
    svdrpsend.pl -p ${VDR_PORT:-2001} PLAY $8 >/dev/null
else
    MESG="$(grep -sA ${LANGUAGE[2]} '"Error while accessing recording!",$' $I18N | tail -n1 | cut -d'"' -f2)"
    svdrpsend.pl -p ${VDR_PORT:-2001} MESG "\${MESG:-Error while accessing recording!}" >/dev/null
fi
EOT