]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Allow the check time frame to be specifid on the commandline, default to
authorAndrew Ruthven <andrew@etc.gen.nz>
Sat, 19 Apr 2008 04:20:34 +0000 (16:20 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 19 Apr 2008 05:47:21 +0000 (17:47 +1200)
10 minutes.

bin/mythtv_recording_soon

index b3198b5b617b6f9a8901a207b8b63e7bbdeec309..c2842ba79cc901d2e6b4b5a4d48d950551324d6f 100755 (executable)
@@ -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