From aeddf4b162146bb6dd5bfcf6753da46d2cf5535e Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 19 Apr 2008 16:20:34 +1200 Subject: [PATCH] Allow the check time frame to be specifid on the commandline, default to 10 minutes. --- bin/mythtv_recording_soon | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/mythtv_recording_soon b/bin/mythtv_recording_soon index b3198b5..c2842ba 100755 --- a/bin/mythtv_recording_soon +++ b/bin/mythtv_recording_soon @@ -15,8 +15,15 @@ then . /etc/default/mythtv-status fi +if [ "x$1" -ne "x" ] +then + ARGS="--recording-in-warn $1" +else + ARGS="--recording-in-warn 600" +fi + /usr/bin/mythtv-status -h ${HOST:=localhost} --return-code-only \ - --recording-now --next-recording + --recording-now --next-recording $ARGS if [ $? -eq 1 ] then -- 2.30.2