There are some user job scripts available <a href="http://www.mythtv.org/wiki/Category:User_Job_Scripts">here</a> for transcoding recordings and accessing the mythconverg database to give the new files a human readable filename. Specifically, <a href="http://www.mythtv.org/wiki/High_Quality_Transcode">this one</a> is one I use. In it is the following:<div>
<br></div><div># ============================================================================</div><div><div># A commonly used SQL row selector:</div><div>my $whereChanAndStarttime = &quot;WHERE chanid=$chanid AND starttime=&#39;$starttime&#39;&quot;;</div>
<div><br></div><div># ============================================================================</div><div># First, generate a new filename,</div><div>#</div><div><br></div><div>$query = $db-&gt;prepare(&quot;SELECT title FROM recorded $whereChanAndStarttime;&quot;);</div>
<div>$query-&gt;execute || Die &quot;Unable to query recorded table&quot;;</div><div>$showtitle = $query-&gt;fetchrow_array;</div><div>$query-&gt;finish;</div><div><br></div><div>$query = $db-&gt;prepare(&quot;SELECT subtitle FROM recorded $whereChanAndStarttime;&quot;);</div>
<div>$query-&gt;execute || Die &quot;Unable to query recorded table&quot;;</div><div>$episodetitle = $query-&gt;fetchrow_array;</div><div>$query-&gt;finish;</div><div><br></div><div>if ( $episodetitle ne &quot;&quot; ) </div>
<div>{</div><div>  $seasonnumber = &quot;&quot;;</div><div>  $episodenumber = &quot;&quot;;</div><div>  $xmlstring = `/usr/share/mythtv/metadata/Television/ttvdb.py -N &quot;$showtitle&quot; &quot;$episodetitle&quot;`;</div>
<div>  if ( $xmlstring ne &quot;&quot; ) {</div><div>    $episodedetails =$xmlparser-&gt;XMLin($xmlstring);</div><div>    $seasonnumber = $episodedetails-&gt;{item}-&gt;{season};</div><div>    $episodenumber = $episodedetails-&gt;{item}-&gt;{episode};</div>
<div>  }</div><div>}</div></div><div># ============================================================================</div><div><br></div><div>This had no issues in Myth 0.24 but since upgrading to 0.25 it fails to execute the &quot;$episodedetails =$xmlparser-&gt;XMLin($xmlstring);&quot; 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:</div>
<div><br></div><div><div>&quot;Unsuccessful stat on filename containing newline at /usr/share/perl5/vendor_perl/XML/Simple.pm line 939.</div><div>File does not exist: </div><div>The modules tvdb_api.py (v1.0.0 or greater), tvdb_ui.py, tvdb_exceptions.py and cache.py.</div>
<div>They should have been installed along with the MythTV python bindings.</div><div>Error:(No module named lxml.etree)</div><div><br></div><div> at /home/david/scripts<span style="background-color:rgb(255,255,255)">/<span style="font-family:sans-serif;font-size:13px;line-height:19px"><a href="http://x264_transcode_high.pl">x264_transcode_high.pl</a></span></span> line 287&quot;</div>
</div><div><br></div><div>I&#39;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.</div>