From 14a263f34b7eb32b91769c35e2307ded9494ea01 Mon Sep 17 00:00:00 2001
From: Andrew Ruthven <andrew@etc.gen.nz>
Date: Sat, 11 Apr 2009 19:16:25 +1200
Subject: [PATCH] Include the encoder details in the "Recording Now" block.

Thanks to Marc Tousignant for the suggestion!
---
 bin/mythtv-status | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

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' => '' },
       },
-- 
2.30.2