<br><br><div class="gmail_quote">On Wed, Feb 1, 2012 at 4:28 PM, Raymond Wagner <span dir="ltr">&lt;<a href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 2/1/2012 16:24, Michael T. Dean wrote:<br>
&gt; On 02/01/2012 04:22 PM, Matt Emmott wrote:<br>
&gt;&gt; On Wed, Feb 1, 2012 at 4:12 PM, Raymond Wagner wrote:<br>
&gt;&gt;&gt; On 2/1/2012 15:32, Matt Emmott wrote:<br>
&gt;&gt;&gt;&gt; If you&#39;d like to see how MythicalLibrarian does its thing, here&#39;s the<br>
&gt;&gt;&gt;&gt; output from my log as it figured out a recording of In Living Color -<br>
&gt;&gt;&gt;&gt; Posted to pastebin at <a href="http://pastebin.com/HqPq265Q" target="_blank">http://pastebin.com/HqPq265Q</a><br>
&gt;&gt;&gt; I know the basic operation.  I spent a decent amount of time with the<br>
&gt;&gt;&gt; author about a year and a half back working out some bad things he was<br>
&gt;&gt;&gt; doing to the database, and trying to encourage him to learn a more<br>
&gt;&gt;&gt; capable and more sensible language.  Of course I failed, because it was<br>
&gt;&gt;&gt; already written in BASH, &quot;which everyone knows is designed for textual<br>
&gt;&gt;&gt; data&quot;.  All that built in capability for textual data must be why the<br>
&gt;&gt;&gt; script is a mess of calls out to curl, sed, grep, and awk to fake XML<br>
&gt;&gt;&gt; processing.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This script really kicked off my hatred of bash.  There&#39;s nothing<br>
&gt;&gt;&gt; inherently wrong with bash, per se.  If you&#39;re doing some limited<br>
&gt;&gt;&gt; variable manipulation, and just intend to string together or run<br>
&gt;&gt;&gt; external utilities, it&#39;s great.  That, plus the fact that it&#39;s light<br>
&gt;&gt;&gt; weight, and can be statically linked, is why it&#39;s used for init scripts<br>
&gt;&gt;&gt; so often.  On the other hand, I see far too many instances on this<br>
&gt;&gt;&gt; mailing list where people write absurdly long bash scripts, doing all<br>
&gt;&gt;&gt; sorts of database manipulation, because bash is what they know and<br>
&gt;&gt;&gt; they&#39;re afraid to leave their comfort zone.  That&#39;s not to say more<br>
&gt;&gt;&gt; advanced interpreted languages are immune to that, as there are plenty<br>
&gt;&gt;&gt; of other examples of things that would do well to be implemented<br>
&gt;&gt;&gt; directly into the code base, but are left in perl/python because<br>
&gt;&gt;&gt; &quot;compiled languages are hard!&quot;<br>
&gt;&gt; So, does anybody want to write a feature that does it &quot;the right way&quot;?  I<br>
&gt;&gt; need to read more about mythvidexport to see if it does what we&#39;re (I&#39;m)<br>
&gt;&gt; looking for. I have a boatload of dual-opteron servers, anybody want to<br>
&gt;&gt; write this feature into Myth in exchange for some hardware? If I&#39;m<br>
&gt;&gt; violating the TOS or good nature of this mailing list, then please<br>
&gt;&gt; disregard this as just a joke. :-)<br>
&gt; After 0.25 is released, mythvidexport.py will be more likely to be able<br>
&gt; to do exactly what you want (i.e. using season and episode information<br>
&gt; from ttvdb to create the name) due to additional data available<br>
&gt; for/about recordings.<br>
<br>
</div></div>It already does that prior to 0.25, calling the grabbers selected for<br>
use in MythVideo against the title and subtitle in an attempt to find a<br>
match, but then that&#39;s still not quite what he&#39;s looking for.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br></div></div></blockquote><div><br>Right, I&#39;m looking for a file format that I can point an aggregator at and have that aggregator interpret the show and episode information.<br>
<br>One final piece about MythicalLibrarian - It does have this option:<br><br>SYMLINK=LINK - Keeps the original MythTV file in it&#39;s place and creates a
 link for XBMC to read. This link is not maintained and the symlink will
 remain after the original file has been deleted<br><br>So, if some sort of logic existed that could periodically check the symlink sources and prune those pointers whose destinations had been deleted, that would accomplish exactly what I&#39;m looking for. But now we&#39;re getting pretty deep into an external app&#39;s behavior, so I&#39;ll contact the developer and see if there&#39;s a a way to bake in this logic. Feel free to chime in with ideas though. :-)<br>
<br>I look forward to .25&#39;s handling of episode data.... I&#39;ll try to keep a close eye on the release and see if I can set up a dev environment to help with the testing.<br></div></div>