my $email_only_on_conflict = 0;
my $help = undef;
my $xml_file = undef;
+my $verbose = 0;
my $VERSION = '0.5.1';
'file=s' => \$xml_file,
+ 'verbose' => \$verbose,
'help|?' => \$help,
) || pod2usage("\nUse --help for help.\n");
# Parse the XML
my $parser = XML::LibXML->new();
+
+ # Some XML data seems to have badness in it, including non-existant
+ # UTF-8 characters. We'll try and recover.
$parser->recover(1);
+ $parser->recover_silently(1)
+ unless $verbose;
+
my $xml = eval { $parser->parse_string( $status ) };
if ($@) {
The port to use when connecting to MythTV, defaults to 6544.
+=item B<--verbose>
+
+Have slightly more verbose output. This includes any warnings that might
+be generated while parsing the XML.
+
=item B<-v, --version>
Show the version of mythtv-status and then exit.