]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Add additional encoder states from libmythtv/tv.h, and logic for display connected...
authorAndrew Ruthven <andrew@cyclops.etc.gen.nz>
Thu, 15 Nov 2007 18:34:09 +0000 (07:34 +1300)
committerAndrew Ruthven <andrew@cyclops.etc.gen.nz>
Thu, 15 Nov 2007 18:34:09 +0000 (07:34 +1300)
bin/mythtv-status

index a5cc18a712557fdc82cf07119d14a4cb45d206f6..63647818f02bcd13b0264250d09348cff855c546 100755 (executable)
@@ -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' },
     }
   },