<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 28, 2012 at 12:33 PM, Andre Ross <span dir="ltr">&lt;<a href="mailto:andre.ross@sbcglobal.net" target="_blank">andre.ross@sbcglobal.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Matt<br>
<br>
That is one of the reasons I use this script its because I use Mythtv and Plex.<br>
I forgot to put the comment start of hack, the start of the hack is the below comments in the script <a href="http://mythlink.pl" target="_blank">mythlink.pl</a><br>
<div class="im"><br>
<br>
#######################################################<br>
#<br>
# find this statment and place hack after my $name =<br>
#<br>
<br>
#<br>
</div><div class="im"># end of hack<br>
########################################################<br>
<br>
</div>Make sure you run the script on the backend if the frontend/backend are not on the same system.<br>
If you run it from the command line, you have to make sure that the user that runs the script under has access mythtv.<br>
remember if you run the command as root the symlinks will be owned by root.<br>
<br>
On my system the recording are located:<br>
/var/lib/mythtv/recordings/<br>
<br>
With a names like:<br>
1206_20121204042900.mpg<br>
<br>
So you got the format right leaving off the file name create symlinks of all your recordings.<br>
<div><br>
2) How would I run this manually to test? Would it be<br>
<a href="http://mythlink.pl" target="_blank">mythlink.pl</a><br>
 --link &quot;/destination/of/symlink&quot; --filename &quot;/myfilename.mpg&quot; --format<br>
&quot;%T/Season %qs2/%T-S%qs2E%qe2-%S&quot; --separator &quot;#&quot;<br>
<br>
And if I wanted to run it once against all the recordings in that directory, just leave off the filename argument:<br>
<a href="http://mythlink.pl" target="_blank">mythlink.pl</a> --link &quot;/destination/of/symlinks&quot; --format &quot;%T/Season %qs2/%T-S%qs2E%qe2-%S&quot; --separator &quot;#&quot;<br>
<br> 
<br></div></blockquote><div><br></div><div>So, some updates:<br><br></div><div>First, I prefer to have all seasons of each recording dumped into their own folder rather than separating them by season 1, season 2 etc. I did this by running the following:<br>
<br>/<a href="http://mythlink.pl">mythlink.pl</a> --link show_names/ --format &quot;%T/%T-S%qs2E%qe2-%S&quot; --separator &quot;#&quot;<br><br></div><div>And it&#39;s AWESOME. So much more usable so far than Mythical Librarian ever was. <br>
</div><div><br></div><div>But I ran into a usability issue that may be of concern. From reading this on the <a href="http://mythlink.pl">mythlink.pl</a> wiki page, I think your method will end up with a lot of dead symlinks:<br>
<br>&quot;Note that when specifying <code>--filename</code> or <code>--chanid</code> and <code>--starttime</code>, deletion of old symlinks is suppressed.&quot;<br><br></div><div>It does say that running mythlink without those switches will blow away all old symlinks first, which at first glance sounds good. However, as i discovered, it recreates all the symlinks which means they all have new datestamps. This means that A) Plex has to re-index everything every time there&#39;s a refresh and B) The &quot;Recently Added&quot; sort option would never work (which I use constantly).<br>
<br></div><div>I did some digging and found that I could run the following to find and delete orphaned symlinks:<br><br>find /var/lib/mythtv/recordings/show_names/ -type l ! -exec test -e {} \; -exec rm {} \;<br><br></div>
<div>I&#39;m going to do some more testing but I think using your user job and a cron job of the above find command might be a good way to go, and I can disable Mythical Librarian altogether.<br> </div></div></div></div>