From 60bb35c4c0ab867940917d366ea52e6361825708 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Wed, 21 Nov 2007 06:38:26 +1300 Subject: [PATCH] And make sure that "time till next recording" works with the new sub handling. --- bin/mythtv-status | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mythtv-status b/bin/mythtv-status index 072a1c6..c427f15 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -170,6 +170,9 @@ my @blocks = ( }, 'filter' => { 'next_time' => sub { return $_[0] eq 'now' } + }, + 'sub' => sub { + return substitute_vars($_[0], { 'next_time' => $next_time }); } }, @@ -218,9 +221,6 @@ for my $block (@blocks) { $output = &{ $block->{'sub'} }($block) if defined $block->{'sub'}; - - } elsif ($block->{'type'} eq 'sub') { - $output = substitute_vars($block, { 'next_time' => $next_time }); } if (defined $output && $output ne '' && ! defined $hide) { -- 2.30.2