diff options
author | horchi <vdr@jwendel.de> | 2017-03-05 16:48:30 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-05 16:48:30 +0100 |
commit | bf558fd824c7ab8c794448f718b364ad403a706a (patch) | |
tree | e0ba2269c08ccc9c9bd9c336df06b1fa6fce5ec6 /scripts/cut.sh | |
download | vdr-plugin-pin-bf558fd824c7ab8c794448f718b364ad403a706a.tar.gz vdr-plugin-pin-bf558fd824c7ab8c794448f718b364ad403a706a.tar.bz2 |
git init0.1.16
Diffstat (limited to 'scripts/cut.sh')
-rwxr-xr-x | scripts/cut.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/cut.sh b/scripts/cut.sh new file mode 100755 index 0000000..3b4a1db --- /dev/null +++ b/scripts/cut.sh @@ -0,0 +1,14 @@ +# +# Copy FSK protection of the PIN plugin when cutting a protected recording +# + +if [ $1 == "edited" ]; then + target_recording="$2" + source_recording=`echo $2 | sed s/"%"/""/ ` + protection_file="$source_recording/protection.fsk" + + if [ -e "$protection_file" ]; then + cp "$protection_file" "$target_recording/" + fi +fi + |