[mythtv] mythlink and case of filenames
Nigel Pearson
nigel.pearson.au at gmail.com
Wed Mar 24 20:20:52 UTC 2021
> On 25 Mar 2021, at 4:12 am, Torbjörn Jansson <torbjorn at jansson.tech> wrote:
>
> Hello.
>
> short question, is there a way to convince mythlink.pl to generate only lowercase symbolic links?
>
> reason for this question is that i have some bad guide data where they cant decide if a show should be uppercase in beginning of the name only or if each word should be upper case.
> this creates multiple similar folders with only a difference in case and i don't like it
>
Something like this (untested) hack:
% diff mythlink.pl.orig mythlink.pl
27a28
> our ($tolower);
54a56
> 'tolower' => \$tolower,
225a228,233
> --tolower
>
> Replace any capital letters in the link name with lower case.
>
> default: Mixed case, as per recording name in the database or guide
>
385a394,397
> # Work around bad guide data?
> if ($tolower) {
> $name = lc($name)
> }
should work?
--
Nigel Pearson, 02 9792 6998, 0408 66 44 35
nigel.pearson.au at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20210325/ce94e43d/attachment.htm>
More information about the mythtv-dev
mailing list