]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Enforce the xml version (which defaults to 0, so will still work with svn trunk)
authorAndrew Ruthven <andrew@etc.gen.nz>
Sat, 8 Dec 2007 04:34:32 +0000 (17:34 +1300)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 8 Dec 2007 04:34:32 +0000 (17:34 +1300)
bin/mythtv-status

index d3e430ab5dfc0c89b9d8dd23a045d5b771e03078..51247d19750416583c391606f9d7a7e2d560856e 100755 (executable)
@@ -222,6 +222,7 @@ my @blocks = (
     'type' => 'xpath',
     'xpath' => '//Status/MachineInfo/Storage',
     'protocol_version' => [ ">= 32", "<= 36" ],
+    'xml_version' => [ "== 0" ],
     'attrs' => [ qw/drive_total_total drive_total_used/ ],
     'commify' => [ qw/drive_total_total drive_total_used/ ],
     'template' => "Total space is __drive_total_total__ GB, with __drive_total_used__ GB used (__percent__)",