[mythtv-users] Mythlink.pl & Recordings Directory
jim
jim_32766 at hotmail.com
Thu Nov 20 12:41:38 UTC 2014
> Date: Wed, 19 Nov 2014 22:47:29 -0500
> From: "Michael T. Dean"<mtdean at thirdcontact.com>
> To: Discussion about MythTV<mythtv-users at mythtv.org>
> Subject: Re: [mythtv-users] Mythlink.pl & Recordings Directory
> Message-ID:<546D6451.2010304 at thirdcontact.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 11/19/2014 05:12 PM, Mark Perkins wrote:
>> On 20 Nov 2014, at 5:56 am, "Matt Emmott" wrote:
>>> On Wed, Nov 19, 2014 at 2:16 PM, jim wrote:
>>>> I would like to point mythlink.pl to a directory other than the the mythtv-default location, /var/lib/mythtv/recordings. I am totally new to perl and am not sure what to change in mythlink.pl to achieve this goal. Any gurus out there that can share a "perl" of wisdom on this? Thanks.
>>> I'm at work so this is from memory, but can't you just run mythlink.pl --link "/destination/of/symlink" ?
>> It appears Matt is correct. See here for more usage details:
>> https://www.mythtv.org/wiki/Mythlink.pl
> To add a bit more information that may be more of an answer to the
> question you wanted to ask (though you may not have had the information
> needed to ask it correctly), my guess is that what you describe as "the
> mythtv-default location, /var/lib/mythtv/recordings" is actually the
> location at which some package-provided script on a package-configured
> cron job is creating links for you (because the mythlink.pl default
> location is actually a subdirectory called "show_names" under one of the
> directories in one of the Storage Groups defined on your system). So,
> really you probably just need to edit the cron job to specify the
> desired --link/--destination/--path argument.
>
> Mike
Thanks to all responders for the quick answers. However, I may not have
succeeded in presenting a clear question. Here is my understanding,
correct it where necessary.
MythTV normally stores all recorded television programs in
/var/lib/mythtv/recordings. There is no subdirectory.
When I run mythlink.pl from the command line, it creates links from
files in /var/lib/mythtv/recordings, using real show names read from a
mythtv-generated database, to a new directory that I choose via command
line arguments. When running mythlink.pl I don't choose, via command
line arguments, the source directory of files.
What I seek to change in the mythlink.pl perl code is the location of
the files used for creating the links (/var/lib/mythtv/recordings), not
the directory for where the links are placed. Is there a variable in the
code, e.g. sgroups, that I can set to indicate a source directory other
than /var/lib/mythtv/recordings?
More information about the mythtv-users
mailing list