summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-09-17 09:03:01 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-09-17 09:03:01 +0200
commite6526ae2691991b7f623ae7345ec05985d3f0005 (patch)
tree61bbf47a5b491574447bb662713ba2c13445561d /INSTALL
parent8423b5ea4c756a3e7c554ec51d7989e32ddfcfea (diff)
downloadvdr-e6526ae2691991b7f623ae7345ec05985d3f0005.tar.gz
vdr-e6526ae2691991b7f623ae7345ec05985d3f0005.tar.bz2
The script given to VDR with the '-r' option is now also called whenever a recording is deleted
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL8
1 files changed, 7 insertions, 1 deletions
diff --git a/INSTALL b/INSTALL
index 50c941e8..07a5079f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -242,7 +242,7 @@ Executing commands before and after a recording:
You can use the '-r' option to define a program or script that gets called
before and after a recording is performed, and after an editing process
-has finished.
+has finished or a recording has been deleted.
The program will be called with two or three (in case of "edited") string
parameters. The first parameter is one of
@@ -250,11 +250,14 @@ parameters. The first parameter is one of
before if this is *before* a recording starts
after if this is *after* a recording has finished
edited if this is after a recording has been *edited*
+ deleted if this is after a recording has been *deleted*
and the second parameter contains the full name of the recording's
directory (which may not yet exists at that moment in the "before" case).
In the "edited" case it will be the name of the edited version (second
parameter) and the name of the source version (third parameter).
+In the "deleted" case the extension of the directory name is ".del"
+instead of ".rec".
Within this program you can do anything you would like to do before and/or
after a recording or after an editing process. However, the program must return
@@ -277,6 +280,9 @@ case "$1" in
echo "Edited recording $2"
echo "Source recording $3"
;;
+ deleted)
+ echo "Deleted recording $2"
+ ;;
*)
echo "ERROR: unknown state: $1"
;;