]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
If the next recording is in less than 1 hour, display the time interval in red.
authorAndrew Ruthven <andrew@etc.gen.nz>
Mon, 19 Nov 2007 17:46:32 +0000 (06:46 +1300)
committerAndrew Ruthven <andrew@cyclops.etc.gen.nz>
Mon, 19 Nov 2007 17:46:32 +0000 (06:46 +1300)
bin/mythtv-status

index 44501fffa4a41805e4ea36df07a9c76078181682..0c68d89dcbca39fed5e5786148724a58f2fd770f 100755 (executable)
@@ -151,7 +151,7 @@ my @blocks = (
 
         my $str = Delta_Format(DateCalc('now', $next_time, undef, 1), 0, '%hh Hours, %mv Minutes');
         $str =~ s/\b1 (Hour|Minute)s/1 $1/;
-        $str =~ s/^0 Hours, //;
+        $str =~ s/^0 Hours, (.*)$/$warning$1$normal/;
         $str =~ s/ 0 Minutes//;
 
        return $str;