Here's my example. I have a folder titled De Wolfe DW_LP 2975 - Town Beat (1966)
I want to put that text in the album field using tag-tag, but I would like to not include the (1966) portion and I would also like to replace the underscore with a forward slash. So that it ends up looking like this in the album field: De Wolfe DW/LP 2975 - Town Beat
I have used $cutright(%_directory%, 7) to eliminate the year, but that still leaves the underscore-forward slash issue. So as of now, I can't make all the necessary changes I want in one move. Is it possible to do this?
You'll need to chain the functions together. This is called nesting.
Mp3Tag has the $replace(string,from,to) function, where string is what will be evaluated, from is what is to be replaced, and to is what from is to be replaced with.
Building from your example, $replace($cutright(%_directory%,7),_,/)
This reads: "Replace all instances of "_" with "/" in string, where string is $cutright(%_directory%, 7)".
I find this apporach most astounding:
Why the restriction to do it
and why the restriction to do it with
?
Of course, there are many ways to scin a cat but if you have found a way to get the data from the
into the album field, then the syntax should already be clear for Convert>Filename-Tag: %album% (%dummy%)\%dummy%)
The almost equivalent as an action for the converter is "Guess value".
So the souce in "Guess value" would be:
Source string: $replace(%_directory%,_,/)
Target format string: %album% (%dummy%)
This has the discrete charme not to fail because the year is shorter or longer.