INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: kstuart on March 15, 2013, 03:32:15 pm

Title: Q on Fill Properties from Filename
Post by: kstuart on March 15, 2013, 03:32:15 pm
Is there something in "Fill Properties from Filename" that will take N characters and do nothing with them ?

MP3Tag has a similar function, which uses % % instead of [ ], and you can have:

%dummy% %title%

when you don't want to overwrite the track numbers, because you have already re-ordered them, but you do want to overwrite the track names from the filename.

( I know that you can already just provide strings - like "flac" - that are already in the filename, but that only seems to work when the same string is there every time.)
Title: Re: Q on Fill Properties from Filename
Post by: marko on March 16, 2013, 01:52:32 am
If a track is named "[track #] - [artist] - [name]" and you only want the name into the name field, then "[] - [] - [name]" in fill properties would get you just that. Does that help?

-marko
Title: Re: Q on Fill Properties from Filename
Post by: kstuart on March 16, 2013, 08:54:50 pm
How does it distinguish between an explicit [ that is part of a string to be ignored, like [FLAC], and [ that indicates a field ?
Title: Re: Q on Fill Properties from Filename
Post by: MrC on March 16, 2013, 09:01:56 pm
The expression evaluator examines tokens that look like fields - if no such field exists, the simple string is used.
Title: Re: Q on Fill Properties from Filename
Post by: kstuart on March 16, 2013, 09:13:54 pm
In the wiki, it says:

" Any text between brackets [] will be replaced with the corresponding field from your library. As an example, [Artist] would be replaced by Bob Dylan for any Bob Dylan tracks. If the text between brackets doesn't match any known fields, it will be left alone, [My Fake Artist] will be treated literally, square brackets and all. "

which is how I was operating, and it doesn't mention anything about [] by itself (as referred to by marko).

So is [] , a special case ? 
Title: Re: Q on Fill Properties from Filename
Post by: MrC on March 16, 2013, 10:21:17 pm
Its been that way since at least 2005; I don't know when it was introduced.