From: Andrew Ruthven Date: Sat, 11 Apr 2009 07:16:25 +0000 (+1200) Subject: Include the encoder details in the "Recording Now" block. X-Git-Tag: 0.9.2~8 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14a263f34b7eb32b91769c35e2307ded9494ea01;p=mythtv-status.git Include the encoder details in the "Recording Now" block. Thanks to Marc Tousignant for the suggestion! --- diff --git a/bin/mythtv-status b/bin/mythtv-status index fa816d5..daf6c34 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -234,8 +234,12 @@ my @blocks = ( 'type' => 'xpath', 'xpath' => "//Status/Encoders/Encoder/Program", 'hide' => 'after', - 'attrs' => [ qw/title endTime channelName:.\/Channel[@channelName]/ ], - 'template' => "__title__ (__channelName__) Ends: __endTime__", + 'attrs' => [ qw/title endTime channelName:.\/Channel[@channelName] + inputId:.\/Channel[@inputId] + chanNum:.\/Channel[@chanNum]/ ], + 'template' => "__title__ (__channelName__" + . ($c->{'encoder_details'} ? ", Enc: __inputId__, Chan: __chanNum__" : '') + . ") Ends: __endTime__", 'rewrite' => { '/endTime/' => { '.*T' => '' }, },