]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Fix modifying next recording if it was "0 Days, 30 Hours".
authorAndrew Ruthven <andrew@etc.gen.nz>
Thu, 11 Sep 2014 11:59:26 +0000 (23:59 +1200)
committerAndrew Ruthven <puck@flick.wgtn.cat-it.co.nz>
Thu, 11 Sep 2014 12:00:20 +0000 (00:00 +1200)
It was being modified to "0 Day, 3" rather than "30 Hours".

ChangeLog
bin/mythtv-status

index 3695b12fb3f1744d893cc7fba77b505627283e0f..27d87470d3fa17307650688cb67935e49b2eeda4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-11     Andrew Ruthven
+       Spotted that if the next recording is in 30 hours, then it is
+       displayed as "0 Days, 3". Correct it so it'll be displayed
+       as "30 Hours".
+
 2013-10-28     Andrew Ruthven
         Guard against zero total disk space, this affected Werner Mahr.
 
index 03135748ef9866ae1ad5332f83f069d9c47f2613..58024136274ac9b8a3e6dd689a69604e60604d33 100755 (executable)
@@ -477,7 +477,7 @@ my @blocks = (
        }
 
         $str =~ s/\b1 (Day|Hour|Minute)s/1 $1/g;
-        $str =~ s/(, )?0 Hours(, )?//;
+        $str =~ s/\b0 (Days|Hours)(, )?//;
         $str =~ s/, 0 Minutes$//;
 
         if ($seconds <= $c->{'recording_in_warn'}) {