[mythtv-users] add season and episode number to mythlink.pl

Andre Ross andre.ross at sbcglobal.net
Fri Dec 28 17:33:56 UTC 2012


Matt

That is one of the reasons I use this script its because I use Mythtv and Plex.
I forgot to put the comment start of hack, the start of the hack is the below comments in the script mythlink.pl


#######################################################
#
# find this statment and place hack after my $name =
#

#
# end of hack
########################################################

Make sure you run the script on the backend if the frontend/backend are not on the same system.
If you run it from the command line, you have to make sure that the user that runs the script under has access mythtv.
remember if you run the command as root the symlinks will be owned by root.

On my system the recording are located:
/var/lib/mythtv/recordings/

With a names like:
1206_20121204042900.mpg

So you got the format right leaving off the file name create symlinks of all your recordings.

2) How would I run this manually to test? Would it be 
mythlink.pl
 --link "/destination/of/symlink" --filename "/myfilename.mpg" --format 
"%T/Season %qs2/%T-S%qs2E%qe2-%S" --separator "#"

And if I wanted to run it once against all the recordings in that directory, just leave off the filename argument:
mythlink.pl --link "/destination/of/symlinks" --format "%T/Season %qs2/%T-S%qs2E%qe2-%S" --separator "#" 



________________________________
From: Matt Emmott <memmott at gmail.com>
To: Andre Ross <andre.ross at sbcglobal.net>; Discussion about MythTV <mythtv-users at mythtv.org> 
Sent: Thursday, December 27, 2012 1:06 PM
Subject: Re: [mythtv-users] add season and episode number to mythlink.pl







On Sun, Nov 18, 2012 at 5:44 PM, Andre Ross <andre.ross at sbcglobal.net> wrote:

Hi
>This is how I added Season/Episode to mythlink.pl I made a copy of
> this script and added a few changes it works for my but looking for
>feedback.
>

First, I also use Plex and this could be fantastic... MythicalLibrarian is very buggy. 

But, a couple things... and I don't know squat about coding so I apologize in advance:


1) I think you're missing the start of hack comment. I see end of hack but no start.

2) How would I run this manually to test? Would it be 

mythlink.pl --link "/destination/of/symlink" --filename "/myfilename.mpg" --format "%T/Season %qs2/%T-S%qs2E%qe2-%S" --separator "#"


And if I wanted to run it once against all the recordings in that directory, just leave off the filename argument:

mythlink.pl --link "/destination/of/symlinks" --format "%T/Season %qs2/%T-S%qs2E%qe2-%S" --separator "#"


I appreciate all the hard work and hope to test it shortly!


More information about the mythtv-users mailing list