[mythtv] A simple feature request

Robert Johnston anaerin at gmail.com
Thu Dec 29 23:19:16 EST 2005


On 12/29/05, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> Kim Wall wrote:
>
> > Darryl Merritt wrote:
> >
> >> I've pondered this for a while now, and the solution I have come up with
> >> is fairly simple. In a separate folder (maybe under the folder where the
> >> records are stored) is a symlink back to the original nuv/mpg file.
> >> The symlink name could be based on the channel, title and start
> >> date/time
> >> of the show.
> >
> > Already exists!  Search the archive for "mythlink"  :)
>
> Or, if using SVN, "mythrename.pl --link=..."

With a (Slightly hacked) older version of Mythlink.pl, I created a
simp[le .sh file (mythlink.sh) that gets called at 05 and 35 by Cron,
and executes the following:

/etc/mythtv/mythlink.pl --dest="/myth/pretty/By Date" --format="%Y%m%d
(%d-%m-%Y)/%H%i%s - %T - %S"
/etc/mythtv/mythlink.pl --dest="/myth/pretty/By Title"
--format="%T/%Y%m%d%H%i%s - %T - %S"
/etc/mythtv/mythlink.pl --dest="/myth/pretty/By Category"
--format="%C/%Y%m%d%H%i%s - %T - %S"


That gets me 3 directories to view my recordings in, one sorted into
seperate "By Date" folders, one into "By Title" folders, and one into
"By Category" folders.

Example:
# cd /myth/pretty/By\ Title/
# ls -l
drwxr-xr-x  2 root root 4096 Dec 29 21:35 Battlestar Galactica
drwxr-xr-x  2 root root 4096 Dec 29 21:35 Bewitched
drwxr-xr-x  2 root root 4096 Dec 29 21:35 CSI- Crime Scene Investigation
drwxr-xr-x  2 root root 4096 Dec 29 21:35 Cold Case
drwxr-xr-x  2 root root 4096 Dec 29 21:35 Dr. Seuss' How the Grinch
Stole Christmas
drwxr-xr-x  2 root root 4096 Dec 29 21:35 Lethal Weapon
drwxr-xr-x  2 root root 4096 Dec 29 21:35 Medium
drwxr-xr-x  2 root root 4096 Dec 29 21:35 Miracle on 34th Street
# cd Battlestar\ Galactica/
# ls -l
lrwxrwxrwx  1 root root 32 Dec 29 21:35 20050926120000 - Battlestar
Galactica - The Living Legend.mpg -> /myth/tv/1041_20050926120000.mpg
lrwxrwxrwx  1 root root 32 Dec 29 21:35 20050927220000 - Battlestar
Galactica - The Living Legend.mpg -> /myth/tv/1041_20050927220000.mpg

And so on.

And I'm pretty sure it'd be very easy to make more commands to sort
any way you please.
--
Robert "Anaerin" Johnston


More information about the mythtv-dev mailing list