diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-02 13:57:41 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-02 13:57:41 +0200 |
commit | 78e11d8c6feab964586e11e9396b3b868c086343 (patch) | |
tree | 97459243aa13bd182529d6cc6aaf85be622a1a13 /INSTALL | |
parent | ebf8a285b21b168be6e9853b8178d2352e58acc1 (diff) | |
download | vdr-78e11d8c6feab964586e11e9396b3b868c086343.tar.gz vdr-78e11d8c6feab964586e11e9396b3b868c086343.tar.bz2 |
Extended the interface to the script that gets called for recordings, so that in the "edited" case it also provides the name of the original recording
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -235,8 +235,8 @@ 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. -The program will be called with two string parameters. The first parameter -is one of +The program will be called with two or three (in case of "edited") string +parameters. The first parameter is one of before if this is *before* a recording starts after if this is *after* a recording has finished @@ -244,7 +244,8 @@ is one of 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. +In the "edited" case it will be the name of the edited version (second +parameter) and the name of the source version (third parameter). 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 @@ -265,6 +266,7 @@ case "$1" in ;; edited) echo "Edited recording $2" + echo "Source recording $3" ;; *) echo "ERROR: unknown state: $1" |