INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Q on Fill Properties from Filename  (Read 1662 times)

kstuart

  • Citizen of the Universe
  • *****
  • Posts: 1955
  • Upgraded to MC22 Master using preorder discount
Q on Fill Properties from Filename
« 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.)

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9165
Re: Q on Fill Properties from Filename
« Reply #1 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

kstuart

  • Citizen of the Universe
  • *****
  • Posts: 1955
  • Upgraded to MC22 Master using preorder discount
Re: Q on Fill Properties from Filename
« Reply #2 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 ?

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Q on Fill Properties from Filename
« Reply #3 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.
Logged
The opinions I express represent my own folly.

kstuart

  • Citizen of the Universe
  • *****
  • Posts: 1955
  • Upgraded to MC22 Master using preorder discount
Re: Q on Fill Properties from Filename
« Reply #4 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 ? 

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Q on Fill Properties from Filename
« Reply #5 on: March 16, 2013, 10:21:17 pm »

Its been that way since at least 2005; I don't know when it was introduced.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up