summaryrefslogtreecommitdiff
path: root/scripts/epg2taste.sh
diff options
context:
space:
mode:
authorChristian Wieninger <winni@debian.(none)>2007-11-11 15:40:28 +0100
committerChristian Wieninger <winni@debian.(none)>2007-11-11 15:40:28 +0100
commit8d4f8607dc1558ce73eb4c376bdbf78ddb65da83 (patch)
treed0c5dde81a36ab2e8a2edc7c1e6922556518b312 /scripts/epg2taste.sh
downloadvdr-plugin-epgsearch-8d4f8607dc1558ce73eb4c376bdbf78ddb65da83.tar.gz
vdr-plugin-epgsearch-8d4f8607dc1558ce73eb4c376bdbf78ddb65da83.tar.bz2
Initial commit
Diffstat (limited to 'scripts/epg2taste.sh')
-rwxr-xr-xscripts/epg2taste.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/epg2taste.sh b/scripts/epg2taste.sh
new file mode 100755
index 0000000..0a6f9e7
--- /dev/null
+++ b/scripts/epg2taste.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# epg2taste.sh - v.0.1
+#
+# add this line to your epgsearchcmds.conf:
+# folgende zeile in die epgsearchcmds.conf eintragen:
+#
+# epg2taste : /usr/local/bin/epg2taste.sh
+
+# CONFIG START
+ TASTE_FILE="/etc/vdr/plugins/taste.conf"
+
+# default taste settings
+ REGULAR_EXPRESSION=0 # Regular Expression / Regulärer Ausdruck
+ IGNORE_CASE=0 # Ignore Case / Groß/Kleinschreibung ignorieren
+# CONFIG END
+
+# add taste
+echo "${REGULAR_EXPRESSION}:${IGNORE_CASE}:${1}" >> "${TASTE_FILE}"
+echo "Done..."
+
+# jump back
+at now <<EOF
+perl -l -e "printf \"\n/usr/local/bin/svdrpsend.pl HITK BACK\" x 2" | sh
+EOF
+