Renaming folders question

I tried searching for a problem similar to mine, please forgive me if this is a common problem.

So I'm trying to rename all folders for this particular artist. I currently tried Tag - Tag Field: _DIRECTORY and Format String to be: %year% - %album% โ€” %artist%

My problem is that I want everything leading up to the / in my artist field to be removed just for the folder names. I tried the $replace function but in my screenshot you can see that some releases have multiple artists before the slash.

Is there anything that would work?

Can you please show us your complete wanted result as an example with your file "1-1 - Cello..." and "1-1 - Arvo Part..."?

Should it be something like
1989 - Cello Concerto... โ€” Arvo Part / The Bamberg... .m4a

The filename is converted correctly, it's converting the %year%, %artist% and %album% to the folder directories for each album. I have the composer(s) as the artists before the forward slash in the artist field which I want to keep, but not when I'm renaming the directories.

For instance, the first album being Cello Concerto, I want the folder directory to look like:
1989 - Cello Concerto,etc. โ€” The Bamberg Symphony Orchestra, Frans Helmerson, Neeme Jarvi

The second album Trivium:
1992 - Trivium โ€” Christopher Bowers-Broadbent

Is this the new wanted directory name?
Or do you want to divide it into subfolders like

     Cello Concertos\
                     The Bamberg Symphony Orchestra, Frans Helmerson, Neeme Jarvi

No, just a single directory for each album.
Final wanted result:
Arvo Pรคrt
1989 - Trivium [ECM 1431, 849 655-2] โ€” Christopher Bowers-Broadbent

I just can't figure out how to remove the composers I have listed before Christopher Bowers-Broadbent since it's varies by each album. If it was just Arvo Part it would be easier.

You could try it with this convert Tag -> Filename ALT + 1
The regular expression around the ARTIST
%year% - %album% โ€” $regexp(%artist%,(.*)\/(.*),$2)
works like this:
Search everything in ARTIST before the first slash and put it into group #1.
Then search for everything after the first slash and put it into group #2.
Replace the complete content of ARTIST with the part in group #2.

This does not change your content in the tag ARTIST, the content will only changed for your output.

If you want it as folder, you can add your title after a backslash like this:
%year% - %album% โ€” $regexp(%artist%,(.*)\/(.*),$2)\%discnumber%-%track% - %title%

Please test it carefully, because it really just look for everything BEFORE and AFTER the first slash in your ARTIST tag. If your data does not following this scheme, the regular expression will not produce the expected result!

This worked perfectly! Thank you very much.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.