summaryrefslogtreecommitdiff
path: root/scripts/cut.sh
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-05 16:48:30 +0100
committerhorchi <vdr@jwendel.de>2017-03-05 16:48:30 +0100
commitbf558fd824c7ab8c794448f718b364ad403a706a (patch)
treee0ba2269c08ccc9c9bd9c336df06b1fa6fce5ec6 /scripts/cut.sh
downloadvdr-plugin-pin-bf558fd824c7ab8c794448f718b364ad403a706a.tar.gz
vdr-plugin-pin-bf558fd824c7ab8c794448f718b364ad403a706a.tar.bz2
git init0.1.16
Diffstat (limited to 'scripts/cut.sh')
-rwxr-xr-xscripts/cut.sh14
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
+