summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2010-03-14 16:43:41 +0100
committerLars Hanisch <dvb@flensrocker.de>2010-03-14 16:43:41 +0100
commitda4e4031e6af413d2d4bd400c8a66a5bdc36ea02 (patch)
tree1911837270e210c2d9601a6d294608e97034ba01 /example
parent73d3a8400706a7703153e76463a905c8364a1cfa (diff)
downloadvdr-plugin-pvrinput-da4e4031e6af413d2d4bd400c8a66a5bdc36ea02.tar.gz
vdr-plugin-pvrinput-da4e4031e6af413d2d4bd400c8a66a5bdc36ea02.tar.bz2
add frequency as parameter to externchannelswitch.sh
This is possibly needed, because the SID now have a more important meaning. It is updated from the vdr in relation to the PAT/PMT so it's not a good idea to store important values there. Use the frequency.
Diffstat (limited to 'example')
-rwxr-xr-xexample/externchannelswitch.sh.example2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/externchannelswitch.sh.example b/example/externchannelswitch.sh.example
index 76a57c7..5fe9117 100755
--- a/example/externchannelswitch.sh.example
+++ b/example/externchannelswitch.sh.example
@@ -8,6 +8,7 @@ DEBUG="true"
declare SID="$1"
declare VDRCHANNEL="$2"
declare VIDEONUMBER="$3"
+declare FREQUENCY="$4"
declare EXTERNCHANNEL
let "EXTERNCHANNEL = SID % 1000" #last three digits from SID without leading 0
@@ -17,5 +18,6 @@ if test "$DEBUG" == "true"; then
logger -s "DEBUG pvrinput externchannelswitch: Variable SID has value \"$SID\""
logger -s "DEBUG pvrinput externchannelswitch: Variable VDRCHANNEL has value \"$VDRCHANNEL\""
logger -s "DEBUG pvrinput externchannelswitch: Variable VIDEONUMBER has value \"$VIDEONUMBER\""
+ logger -s "DEBUG pvrinput externchannelswitch: Variable FREQUENCY has value \"$FREQUENCY\""
logger -s "DEBUG pvrinput externchannelswitch: Variable EXTERNCHANNEL has value \"$EXTERNCHANNEL\""
fi