From 9a326b67251dc63d79171f99c36936166111a825 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Fri, 16 Nov 2007 07:34:09 +1300 Subject: [PATCH] Add additional encoder states from libmythtv/tv.h, and logic for display connected state. --- bin/mythtv-status | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/mythtv-status b/bin/mythtv-status index a5cc18a..6364781 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -52,10 +52,15 @@ my @blocks = ( { 'name' => 'Encoders', 'xpath' => "//Status/Encoders/Encoder", - 'attrs' => [ qw/hostname id state/ ], - 'template' => "__hostname__ (__id__) - __state__", + 'attrs' => [ qw/hostname id state connected/ ], + 'template' => "__hostname__ (__id__) - __state____connected__", 'rewrite' => { - 'state' =>{ '0' => 'Idle', '4' => 'Recording' }, + 'connected' => { '1' => '', '0' => ' (Disconnected)' }, + 'state' =>{ '0' => 'Idle', + '1' => 'Watching LiveTV', + '2' => 'Watching Prer-recorded', + '3' => 'Watching Recording', + '4' => 'Recording' }, } }, -- 2.30.2