INTERACT FORUM

More => Old Versions => JRiver Media Center 29 for Windows => Topic started by: Manfred on August 18, 2022, 06:20:22 am

Title: Use of Fixed length for [Name] in Rename, Move, Copy Files tool-Opera [Solved]
Post by: Manfred on August 18, 2022, 06:20:22 am
Even though MC supports file names over 260 characters, it generates problems with MC Rename, Move, Copy Files  tool and backup tools etc. I want to have all file names within the limit.

For me there would be two kind of solutions:

1. Wagner, Das Rheingold (Solti - 1958, CD - 1997) - Track 01.flac
    Wagner, Das Rheingold (Solti - 1958, CD - 1997) - Track 02.flac
I would not like this, even it is easy, but if something goes wrong with the numbers you have no chance to find the errors.

2. I would like to have the [Name] Field truncated to a fixed length e.g 50 characters
e.g.:
Use of separate directory for the file this leads to: 
Wagner, Das Rheingold (Solti - 1958, CD - 1997)\19 - Das Rheingold, 3. Szene ''Vergeh, frevelnder Gauch!...Was sagt der_...Sei doch bei Sinnen!'' (Wotan, Alberich, Loge).flac

->truncate the file leads to:

2.Wagner, Das Rheingold (Solti - 1958, CD - 1997)\19 - Das Rheingold, 3. Szene ''Vergeh, frevelnder.flac

Is that possible with the existing Rename, Move, Copy Files  tool and how?
Or is this a new feature request?
Title: Re: Use of Fixed length for [Name] Field in Rename, Move, Copy Files tool for Opera
Post by: blgentry on August 18, 2022, 08:31:31 am
You should be able to use the Left() function in an expression for the filename.

https://wiki.jriver.com/index.php/String_Manipulation_Functions#Left

Something like:
Code: [Select]
(Left([Name],250)
Hopefully that gets you started in the right direction.  :)

Brian.
Title: Re: Use of Fixed length for [Name] Field in Rename, Move, Copy Files tool for Opera
Post by: EnglishTiger on August 18, 2022, 09:00:30 am
Alternatively if you were to use the Additional Fields/Tags the "English Tiger - Ultimate 1 TrackInfo plugins" use you can remove a reasonable amount of the "unessential" information you currently have in the Track Name

https://yabb.jriver.com/interact/index.php/topic,129621.0.html (https://yabb.jriver.com/interact/index.php/topic,129621.0.html)
Title: Re: Use of Fixed length for [Name] Field in Rename, Move, Copy Files tool for Opera
Post by: Manfred on August 18, 2022, 09:33:00 am
Thank you very much, that helps!
I use now:
Base Path:D:\Audio\Classical\
Filename: [Album]\[Track #] - Left(listitem([Name], 0, (),150)

I eliminate first the role bracket e.g. (Wotan, Alberich, Loge) and cut it down to max of 150 char. leaving 100 characters for the base path.