<br><br><div><span class="gmail_quote">On 5/21/07, <b class="gmail_sendername">Douglas Wagner</b> &lt;<a href="mailto:douglasw0@gmail.com">douglasw0@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yea, and I use that, but due to re-orging everything massively I now have about 60 - 80 unliked files in my /mnt/video1 that I need to get links back to in my /video directory so they&#39;re again watchable through myth.&nbsp; I wasn&#39;t sure if there was a fast way (I did it once with a shell for loop) to just create the links.
<br><br>--Doug<br><br><div><div><span class="e" id="q_112afcb04207a768_1"><span class="gmail_quote">On 5/21/07, <b class="gmail_sendername">Michael T. Dean</b> &lt;<a href="mailto:mtdean@thirdcontact.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mtdean@thirdcontact.com</a>&gt; wrote:</span></span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_112afcb04207a768_3">

On 05/21/2007 12:22 PM, Douglas Wagner wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Got a frontend/backend on one system, have a NAS that is serving<br>&gt; as active storage on another system across a 100bt wired link.<br>&gt;<br>&gt; Recordings go to my local /video directory and will then be moved
<br>&gt; across the wire (via myth_archive_job.pl) to one of the two nas<br>&gt; recording areas (Video 1 or Video 2).&nbsp;&nbsp;Obviously this creates sim<br>&gt; links in the local /video directory.&nbsp;&nbsp;MythTV is setup to &quot;follow sim
<br>&gt; links&quot; upon delete so all is good there.<br>&gt;<br>&gt; My question surrounds mythrename.pl.&nbsp;&nbsp;If I were to want to run this<br>&gt; guy to re-name shows, will he work &quot;through sim links&quot; or would I have
<br>&gt; to run this guy on the NAS box and then some way re-name the created<br>&gt; sim links?<br><br>I /highly/ recommend you never rename MythTV recording files.&nbsp;&nbsp;Instead,<br>use &quot;mythrename.pl --link&quot; to create &quot;pretty&quot; symlinks to the recording
<br>files (or recording links).<br><br>&gt; Maybe the better question is: considering the setup i&#39;ve explained<br>&gt; above, what&#39;s the best way to re-name the 1092_20070516120000.mpg<br>&gt; files that I get to something slightly more meaningful so that I can
<br>&gt; access the show in the local /video directory by a name that is<br>&gt; comprehensible (yet still play these things through myth).&nbsp;&nbsp;I really<br>&gt; don&#39;t care what the file name on the NAS is, so long as MythTV can get
<br>&gt; rid of it upon delete.&nbsp;&nbsp;If the answer is to have a sim link in /video<br>&gt; of a valid name pointing to a 1092.....file on the nas, i&#39;m good with<br>&gt; this so long as Myth can properly delete.<br><br>Put the links in a separate directory so you don&#39;t have all the other
<br>&quot;junk&quot; in there (i.e. PNG thumbnail images, ugly-named recordings,<br>etc.).&nbsp;&nbsp;Also, &quot;mythrename --link&quot; will delete /all/ symlinks under the<br>provided link directory (so it would delete the ugly-Myth-named links as
<br>well as the pretty mythrename links, leaving orphaned recordings).<br><br>And, that&#39;s what deletes the old symlinks--mythrename.pl, not Myth.&nbsp;&nbsp;So,<br>for example, I run mythrename.pl --link on a cron job at 1 and 31 past
<br>the hour (nearly all shows I record start on the half hour).&nbsp;&nbsp;Sure, I<br>may have a recording or two for which I don&#39;t have a link or for which I<br>have a link right after I delete the recording--for up to half an
<br>hour--but if I really need to, I can always run &quot;mythrename.pl --link&quot;<br>myself.<br><br>In fact, though, I never run mythrename.pl directly.&nbsp;&nbsp;I have a little<br>&quot;wrapper&quot; script that creates various &quot;views&quot; using different formats
<br>for the names (attached).&nbsp;&nbsp;That means that each view--when sorted<br>alphabetically (or ASCII-betically, as the case may be)--gives me<br>differently-sorted recordings lists.&nbsp;&nbsp;The list sorted by original<br>airdate lets me know what order to watch the episodes.&nbsp;&nbsp;The list sorted
<br>by recording starttime lets me easily find the newest recordings. ...<br><br>&gt; Also as another side item (unrelated) anyone have a fast for loop<br>&gt; command to take all the *.mpg files in /mnt/video1 and link them to
<br>&gt; /video?&nbsp;&nbsp;I&#39;ve done this before but I forget the command I used.<br><br>Have you looked at myth_archive_job.pl (which has nothing to do with<br>MythArchive, BTW)?<br><br>Mike<br><br></span></div>_______________________________________________
<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br><br><br></blockquote></div><br>
</blockquote></div><br>So maybe what i&#39;m reading here is that the best way to handle this is as follows:<br><br>Mythtv records shows to /video.<br>Some job moves the shows from /video to /mnt/video1<br>every half hour mythrename --link runs to re-link all the files in /mnt/video1 and /mnt/video2 back to /video
<br><br>Now, is there an option on mythrename --link to allow it to link multiple directories of files to one source dir? (i.e. /mnt/video1 and /mnt/video2 to /video)<br><br>Thanks for the info on this.<br><br>--Doug<br>