From: Andrew Ruthven Date: Thu, 15 Nov 2007 18:34:09 +0000 (+1300) Subject: Add additional encoder states from libmythtv/tv.h, and logic for display connected... X-Git-Tag: 0.3~2 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a326b67251dc63d79171f99c36936166111a825;p=mythtv-status.git Add additional encoder states from libmythtv/tv.h, and logic for display connected state. --- 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' }, } },