]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Stop the encoders being reported as Unknown if they are really Idle.
authorAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Fri, 16 Nov 2007 00:10:05 +0000 (13:10 +1300)
committerAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Fri, 16 Nov 2007 00:10:05 +0000 (13:10 +1300)
bin/mythtv-status

index 0c5864ddd1db2c93a0f6fe64fbe43b7f7240265c..112e27e53bc0644b2cf5a5318b0a1ef9eea49f5c 100755 (executable)
@@ -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} &&