1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#
# Custom VDR Recording Action Hook
# ----------------------------------
#
# This is a custom Recording Action Hook. It gets called by vdr
# before a recording starts, after a recording ended, after editing was
# started, and after a recording has been edited. It is maintained as
# a config file in the vdr package. All other recording hooks get
# executed before this one!
#
# If you want to create your own recording hook that may get executed
# before any other hook, create it in /usr/share/vdr/recording-hooks or
# link to this location. All hooks are called in their alphabetical
# order and should follow this naming scheme:
#
# R<XX>.<identifier>
#
# Where <XX> is a two digit number, that mainly specifies the execution order
# and <identifier> is a unique descriptor.
#
# Two parameters are passed:
#
# Parameter 1 can have the values "before", "started", "after", "editing", "edited" and "deleted"
, and "edited", depending
# on whether the recording hook is called before the recording starts,
# after the recording ends or after the recording has been edited.
#
# Parameter 2 is the directory of the recording. Be aware, that this directory
# doesn't exist before the recording starts.
#
case $1 in
before)
# do here whatever you would like to do right BEFORE
# the recording $2 STARTS
;;
started)
# do here whatever you would like to do right AFTER
# the recording $2 STARTED
;;
after)
# do here whatever you would like to do right AFTER
# the recording $2 ENDED
;;
editing)
# do here whatever you would like to do right AFTER
# the editing of recording $2 has been started,
# $3 is the original recording
;;
edited)
# do here whatever you would like to do right AFTER
# the recording $2 has been EDITED
# $3 is the original recording
;;
deleted)
# do here whatever you would like to do right AFTER
# the recording $2 has been DELETED
;;
esac
|