<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Or, just use mythrename.pl --link... I have my system set up to run it 5 different times every half hour, creating 5 different directories sorted differently. And, mythrename.pl --link will give you good filenames /after/ the copy--meaning that when you throw them on the laptop, you'll know which shows to watch and in what order.<br>
<br>
<a href="http://www.gossamer-threads.com/lists/mythtv/users/331410#331410" target="_blank">http://www.gossamer-threads.com/lists/mythtv/users/331410#331410</a> has the script I run and explains the sorting.<br>
<br>
</blockquote></div><br>Not to hijack the thread, but I just ran the mythrename.pl and got this:<br><br><span style="font-family: courier new,monospace;">/media/myth # /usr/share/mythtv/contrib/mythrename.pl --link --format "%T-%S-%R_%Y.%m.%d"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Can't create symlink /media/myth/show_names/60 Minutes- Edited down to just Ben Bernanke- Federal Reserve Chairman Ben Bernanke talks about what went wrong with the country's financial system and when the recession might end; Alice Waters has been touting the virtues of fresh foods grown in an environmentally friendly way for decades._2009.03.15.mpg: File name too long</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/media/myth # </span><br style="font-family: courier new,monospace;"><br>Now from the wiki, I pasted this code:<br><br><pre> # Make the substitution<br> my $keys = join('|', sort keys %fields);<br>
my $name = $format;<br> $name =~ s#/#$dest ? "\0" : $separator#ge;<br> $name =~ s/(?<!%)(?:%($keys))/$fields{$1}/g;<br> #Shrink the description, if it is too long. I use 251 to account for a 4 character file extension<br>
if($fields{R} && length($name) > 251) {<br> $fields{R} = substr($fields{R}, 0, length($name)-251);<br> $name = $format;<br> $name =~ s#/#$dest ? "\0" : $separator#ge;<br>
$name =~ s/(?<!%)(?:%($keys))/$fields{$1}/g;<br> }<br> $name =~ s/%%/%/g;<br> # Some basic cleanup for illegal (windows) filename characters, etc.<br></pre><br>Right at the end of mythrename.pl as it stated (line 359). Still gave me that error when running it, though.<br>
<br><br>Bob<br>