]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
When stripping off "0 Minutes" take off the comma as well.
authorAndrew Ruthven <andrew@etc.gen.nz>
Sat, 7 Jul 2012 02:10:18 +0000 (14:10 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 7 Jul 2012 02:10:18 +0000 (14:10 +1200)
ChangeLog
bin/mythtv-status

index 36b03ddacfc6aaf5f4162da6089186af66db7b0a..67ebe1ba21cfda90e7f41d87908c1a25ca6cdc0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
        don't report it as "1 Hour, 1 Minutes".  Thank you to Julian Gilbey
        for the patch fixing this.
 
+       If the next recording is in $x Hours, 0 Minutes, remove the comma
+       as well, previously it was outputing "$x Hours,".
+
 2012-07-06     Andrew Ruthven
        Correctly handle UTF-8 in the output from MythTV.
 
index 80e5336d47bf33b263aec94cb1ba25afc3a9de5d..17e685757d9dbea25f041446c3e12c76f7356d53 100755 (executable)
@@ -445,7 +445,7 @@ my @blocks = (
 
         $str =~ s/\b1 (Hour|Minute)s/1 $1/g;
         $str =~ s/^0 Hours, //;
-        $str =~ s/ 0 Minutes//;
+        $str =~ s/, 0 Minutes//;
 
         if ($seconds <= $c->{'recording_in_warn'}) {
           $warn_present ||= 1;