[mythtv] [mythtv-commits] Ticket #3092: Ability to set the directory for each recording

Michael T. Dean mtdean at thirdcontact.com
Sat Feb 17 05:58:30 UTC 2007

On 02/16/2007 06:32 PM, Johan Venter wrote:
> Michael T. Dean wrote:
>> As a matter of fact, I use a little script that calls mythrename.pl 
>> multiple times--each time creating a new directory of links using 
>> different formats (which means they're sorted differently)--giving me 
>> several "views" of my recordings.
>> The script is attached and is relatively self-explanatory.
> Great script, I've never really played with mythrename.pl but making 
> links like this is excellent.
> I added the following line to the script to remove any symlinks whose 
> targets had been deleted/expired and cronned it :)
>    find -L ${VIEWS_PATH} -lname '*' -exec rm {} \;
> Took me a couple minutes to work out how to do it (I can never remember 
> find options), so thought I would share.

The mythrename.pl script will already delete all links below the link 
directory and then creates new links for all shows, so no need to delete 
them first.


More information about the mythtv-dev mailing list