MythTV Symlinking Script
January 2nd, 2007Here’s a really handy script one of my friends wrote that creates a directory of symlinks in your MythTV recordings directory with the show name and date. It is great for when you want to take a copy of some shows on the road with you or give them to someone who missed an episode of something. This may explain what it does better:
root@myserver:/mnt/mythtv-recordings/symlinks# ls -lh
5th Gear - 2006-11-12 14:25 - 15:07.nuv -> ../1001_20061112142500.nuv
5th Gear - 2006-11-19 14:20 - 15:07.nuv -> ../1001_20061119142000.nuv
5th Gear - 2006-11-26 14:20 - 15:07.nuv -> ../1001_20061126142000.nuv
5th Gear - 2006-12-10 14:20 - 15:07.nuv -> ../1001_20061210142000.nuv
You can download it here, just put in your mysql server username and password, MythTV database name and recordings directory at the top and run it. It should do the rest for you, you should set it up to run under a cron job every hour or so and it will keep the symlinks directory updated for you.
July 31st, 2008 at 3:11 pm
You seem to have created a Ruby version of mythrename.pl? From the Myth wiki page
mythrename.pl usage:
options:
–link [destination directory]
If you would like mythrename.pl to work like the old mythlink.pl, specify
–link and an optional pathname. If no pathname is given, links will be
created in the show_names directory inside of the current mythtv data
directory on this machine. eg:
/var/video/show_names/
WARNING: ALL symlinks within the destination directory and its
subdirectories (recursive) will be removed when using the –link option.