]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Include the encoder details in the "Recording Now" block.
authorAndrew Ruthven <andrew@etc.gen.nz>
Sat, 11 Apr 2009 07:16:25 +0000 (19:16 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 11 Apr 2009 07:16:25 +0000 (19:16 +1200)
Thanks to Marc Tousignant for the suggestion!

bin/mythtv-status

index fa816d56dd350881d04b5c2b35fc173ff92b1dd9..daf6c3425e40634b884937078ac348dcb744006f 100755 (executable)
@@ -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' => '' },
       },