diff options
author | Andreas Mair <andreas@vdr-developer.org> | 2010-08-26 07:50:59 +0200 |
---|---|---|
committer | Andreas Mair <andreas@vdr-developer.org> | 2010-08-26 07:57:29 +0200 |
commit | 57a99e05234ffc28bb3a1d16c058bf38ce629d82 (patch) | |
tree | fd24bf63611cfe9aad299e2cb88c1c85df950c1d /contrib/rating | |
parent | acf461064b16ec85ef52887773d8d6a364826106 (diff) | |
download | vdr-plugin-extrecmenu-57a99e05234ffc28bb3a1d16c058bf38ce629d82.tar.gz vdr-plugin-extrecmenu-57a99e05234ffc28bb3a1d16c058bf38ce629d82.tar.bz2 |
Merge from v1.3-devel head (Submitted by Joe_D @vdr-portal.de).
Diffstat (limited to 'contrib/rating')
-rw-r--r-- | contrib/rating/README | 12 | ||||
-rw-r--r-- | contrib/rating/reccmds/reccmds.custom.conf | 12 | ||||
-rw-r--r-- | contrib/rating/reccmds/reccmds.custom.conf.de | 12 | ||||
-rw-r--r-- | contrib/rating/vdr-rate-recording.sh | 8 |
4 files changed, 44 insertions, 0 deletions
diff --git a/contrib/rating/README b/contrib/rating/README new file mode 100644 index 0000000..e4da43d --- /dev/null +++ b/contrib/rating/README @@ -0,0 +1,12 @@ +The rating feature of the extrecmenu plugin gives the possibility +to rate recordings. These ratings are shown in the Recordings menu +with up to 5 stars. + + +Installation +============ + +1. Copy ./vdr-rate-recording.sh to Your local file system +2. Edit your reccmds.conf file: add entries to rate a recording. + You may want to use ./reccmds/reccmds.custom.conf as a starting point. + Modify the path to vdr-rate-recording.sh (if neccessary) diff --git a/contrib/rating/reccmds/reccmds.custom.conf b/contrib/rating/reccmds/reccmds.custom.conf new file mode 100644 index 0000000..0555e4d --- /dev/null +++ b/contrib/rating/reccmds/reccmds.custom.conf @@ -0,0 +1,12 @@ +=== Rate Recording === : echo "no function" +-rate with 10: /usr/share/vdr/bin/vdr-rate-recording.sh 10 +-rate with 9: /usr/share/vdr/bin/vdr-rate-recording.sh 9 +-rate with 8: /usr/share/vdr/bin/vdr-rate-recording.sh 8 +-rate with 7: /usr/share/vdr/bin/vdr-rate-recording.sh 7 +-rate with 6: /usr/share/vdr/bin/vdr-rate-recording.sh 6 +-rate with 5: /usr/share/vdr/bin/vdr-rate-recording.sh 5 +-rate with 4: /usr/share/vdr/bin/vdr-rate-recording.sh 4 +-rate with 3: /usr/share/vdr/bin/vdr-rate-recording.sh 3 +-rate with 2: /usr/share/vdr/bin/vdr-rate-recording.sh 2 +-rate with 1: /usr/share/vdr/bin/vdr-rate-recording.sh 1 +-remove rating: /usr/share/vdr/bin/vdr-rate-recording.sh 0 diff --git a/contrib/rating/reccmds/reccmds.custom.conf.de b/contrib/rating/reccmds/reccmds.custom.conf.de new file mode 100644 index 0000000..89c875d --- /dev/null +++ b/contrib/rating/reccmds/reccmds.custom.conf.de @@ -0,0 +1,12 @@ +=== Aufnahme bewerten === : echo "no function" +-bewerte mit 10: /usr/share/vdr/bin/vdr-rate-recording.sh 10 +-bewerte mit 9: /usr/share/vdr/bin/vdr-rate-recording.sh 9 +-bewerte mit 8: /usr/share/vdr/bin/vdr-rate-recording.sh 8 +-bewerte mit 7: /usr/share/vdr/bin/vdr-rate-recording.sh 7 +-bewerte mit 6: /usr/share/vdr/bin/vdr-rate-recording.sh 6 +-bewerte mit 5: /usr/share/vdr/bin/vdr-rate-recording.sh 5 +-bewerte mit 4: /usr/share/vdr/bin/vdr-rate-recording.sh 4 +-bewerte mit 3: /usr/share/vdr/bin/vdr-rate-recording.sh 3 +-bewerte mit 2: /usr/share/vdr/bin/vdr-rate-recording.sh 2 +-bewerte mit 1: /usr/share/vdr/bin/vdr-rate-recording.sh 1 +-entferne Bewertung: /usr/share/vdr/bin/vdr-rate-recording.sh 0 diff --git a/contrib/rating/vdr-rate-recording.sh b/contrib/rating/vdr-rate-recording.sh new file mode 100644 index 0000000..30b43b1 --- /dev/null +++ b/contrib/rating/vdr-rate-recording.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +[ $? -ne 2 ] && echo "Usage: $0 <path to the VDR recording> <rating 0 - 10>" && exit 1 + +rm ${2}/rated.vdr >/dev/null 2>&1 +if [ ! ${1} = "0" ]; then + echo "${1}" > $2/rated.vdr +fi |