[mythtv-users] Myth perl script not working since upgrade to 0.25
David Farmer
remrafevad at gmail.com
Thu May 31 13:04:50 UTC 2012
There are some user job scripts available
here<http://www.mythtv.org/wiki/Category:User_Job_Scripts> for
transcoding recordings and accessing the mythconverg database to give the
new files a human readable filename. Specifically, this
one<http://www.mythtv.org/wiki/High_Quality_Transcode> is
one I use. In it is the following:
#
============================================================================
# A commonly used SQL row selector:
my $whereChanAndStarttime = "WHERE chanid=$chanid AND
starttime='$starttime'";
#
============================================================================
# First, generate a new filename,
#
$query = $db->prepare("SELECT title FROM recorded $whereChanAndStarttime;");
$query->execute || Die "Unable to query recorded table";
$showtitle = $query->fetchrow_array;
$query->finish;
$query = $db->prepare("SELECT subtitle FROM recorded
$whereChanAndStarttime;");
$query->execute || Die "Unable to query recorded table";
$episodetitle = $query->fetchrow_array;
$query->finish;
if ( $episodetitle ne "" )
{
$seasonnumber = "";
$episodenumber = "";
$xmlstring = `/usr/share/mythtv/metadata/Television/ttvdb.py -N
"$showtitle" "$episodetitle"`;
if ( $xmlstring ne "" ) {
$episodedetails =$xmlparser->XMLin($xmlstring);
$seasonnumber = $episodedetails->{item}->{season};
$episodenumber = $episodedetails->{item}->{episode};
}
}
#
============================================================================
This had no issues in Myth 0.24 but since upgrading to 0.25 it fails to
execute the "$episodedetails =$xmlparser->XMLin($xmlstring);" line
for things such as TV series, documentaries, reality TV. It does however
still work fine for movies. The error being produced is the following:
"Unsuccessful stat on filename containing newline at
/usr/share/perl5/vendor_perl/XML/Simple.pm line 939.
File does not exist:
The modules tvdb_api.py (v1.0.0 or greater), tvdb_ui.py, tvdb_exceptions.py
and cache.py.
They should have been installed along with the MythTV python bindings.
Error:(No module named lxml.etree)
at /home/david/scripts/x264_transcode_high.pl line 287"
I'm wondering if anyone can help with a solution to this. I really like
this script and would like to continue using it for both movies and TV
series.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20120531/69756c2a/attachment.html>
More information about the mythtv-users
mailing list