[mythtv-users] Mythlink.pl & Recordings Directory

jim jim_32766 at hotmail.com
Thu Nov 20 13:24:12 UTC 2014


On 11/20/2014 08:06 AM, Mark Perkins wrote:
>
> On 20 Nov 2014, at 11:12 pm, "jim" <jim_32766 at hotmail.com> wrote:
>
>>> 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?
>>
>> _______________________________________________
> I might be confused by the question, but how can you have symlinks from a source other than where your recordings are stored?
>
> Is your question really that you want to change where MythTV stores your recordings? The answer will depend on what version MythTV you are running (don't remember if you said) but in later versions using storage groups it can be set from within mythtv-setup.
>
> I'm not familiar with the pre storage group behaviour so someone else will have to assist you with that.
>
> As I understand it (without checking the code) mythlink.pl finds the source directory(s) directly from the database.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
My recordings are not stored in /var/lib/mythtv/recordings. The actual 
recorded files are stored in /home/mythtv/recordings with only symbolic 
links in /var/lib/mythtv/recordings. That allows my MythTV config to 
remain unmodified (this may provide some protection from breakage of my 
setup due to updates/upgrades) and keeps all the user data in /home.
I wish to still be able to run mythlink.pl with a couple of 
modifications, one of which is to have it link to the real files, not 
the links.


More information about the mythtv-users mailing list