Rwrapper.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
(+ Sharemarks) |
|||
Zeile 6: | Zeile 6: | ||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | ||
− | case "$ | + | case "$1" in |
before) | before) | ||
echo "Before recording $2" | echo "Before recording $2" | ||
Zeile 12: | Zeile 12: | ||
/etc/vdr/scripts/clipinc/vdrrecinfo.pl "$@" | /etc/vdr/scripts/clipinc/vdrrecinfo.pl "$@" | ||
} | } | ||
+ | test -x /usr/local/bin/marks2pts && { | ||
+ | echo "/usr/local/bin/marks2pts $1 \"$2\"" | at now | ||
+ | } | ||
;; | ;; | ||
after) | after) | ||
Zeile 25: | Zeile 28: | ||
;; | ;; | ||
edited) | edited) | ||
− | + | echo "Edited recording ${2}" | |
+ | test -x /usr/local/bin/marks2pts && { | ||
+ | echo "/usr/local/bin/marks2pts -upload $1 \"$2\"" | at now | ||
+ | } | ||
;; | ;; | ||
*) | *) |
Version vom 20. November 2004, 21:58 Uhr
#!/bin/sh # # an example script for use with the '-r' option could look like this: PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin case "$1" in before) echo "Before recording $2" test -x /etc/vdr/scripts/clipinc/vdrrecinfo.pl && { /etc/vdr/scripts/clipinc/vdrrecinfo.pl "$@" } test -x /usr/local/bin/marks2pts && { echo "/usr/local/bin/marks2pts $1 \"$2\"" | at now } ;; after) echo "After recording $2" test -x /usr/local/bin/noad && { /usr/local/bin/noad nice --background \ --jumplogo \ --ac3 \ --overlap \ --OSD \ --statisticfile=/var/log/noadstat "$@" } ;; edited) echo "Edited recording ${2}" test -x /usr/local/bin/marks2pts && { echo "/usr/local/bin/marks2pts -upload $1 \"$2\"" | at now } ;; *) echo "ERROR: unknown state: $2" ;; esac