From e62f6260129393f485ebac8aeec2afeebd8a2384 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Fri, 16 Nov 2007 13:10:05 +1300 Subject: [PATCH] Stop the encoders being reported as Unknown if they are really Idle. --- bin/mythtv-status | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mythtv-status b/bin/mythtv-status index 0c5864d..112e27e 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -122,7 +122,8 @@ for my $block (@blocks) { my $value = $key eq 'NODE_TEXT' ? wrap(' ', ' ', $item->string_value()) : $item->getAttribute($key); $value =~ s/\s+$//; - $value ||= 'Unknown'; + $value = 'Unknown' + if $value eq ''; $skip = 1 if defined $block->{'filter'}{$key} && -- 2.30.2