diff options
author | Christian Wieninger <winni@debian.(none)> | 2007-11-11 15:40:28 +0100 |
---|---|---|
committer | Christian Wieninger <winni@debian.(none)> | 2007-11-11 15:40:28 +0100 |
commit | 8d4f8607dc1558ce73eb4c376bdbf78ddb65da83 (patch) | |
tree | d0c5dde81a36ab2e8a2edc7c1e6922556518b312 /scripts/epg2autotimer.sh | |
download | vdr-plugin-epgsearch-8d4f8607dc1558ce73eb4c376bdbf78ddb65da83.tar.gz vdr-plugin-epgsearch-8d4f8607dc1558ce73eb4c376bdbf78ddb65da83.tar.bz2 |
Initial commit
Diffstat (limited to 'scripts/epg2autotimer.sh')
-rwxr-xr-x | scripts/epg2autotimer.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/epg2autotimer.sh b/scripts/epg2autotimer.sh new file mode 100755 index 0000000..dd07879 --- /dev/null +++ b/scripts/epg2autotimer.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# +# epg2autotimer.sh - v.0.1 +# +# source: epgsearch-plugin +# +# add this line to your epgsearchcmds.conf: +# folgende zeile in die epgsearchcmds.conf eintragen: +# +# epg2autotimer : /usr/local/bin/epg2autotimer.sh + +# CONFIG START + AUTOTIMER_FILE="$SOURCEDIR/vdradmin/vdradmind.at" + +# default autotimer settings + STATUS=1 # 0 = inactive (by default) / 1 = active + SERIE=1 # Serienaufnahme + PRIO=0 # Priority / Priorität + LIFE_TIME=0 # Lifetime / Lebensdauer + TARGET_DIR= # Folder / Verzeichnis + SEARCH_WHERE=1 # Where to search / Wo soll gesucht werden? 1: Title 3: Title+Subtitle 7: All +# CONFIG END + +# add autotimer +echo "${STATUS}:${1}:${SEARCH_WHERE}:::${SERIE}:${PRIO}:${LIFE_TIME}:${4}:${TARGET_DIR}" >> "${AUTOTIMER_FILE}" +echo "Done..." + +# jump back +at now <<EOF +perl -l -e "printf \"\n/usr/local/bin/svdrpsend.pl HITK BACK\" x 2" | sh +EOF + |