Help with "Convert Filename - Tag"

Hi!

MP3TAG supporter and longtime user here, posting for the first time! :slightly_smiling_face:

I've searched the forum, but couldn't find any solution to my question.

I'm trying to use the feature "Convert Filename - Tag" to fix my tags.

All my music albums are named using the following naming convention:

%albumartist% - %album% (%year%)\%track% - %artist% - %title%

(Which is the "Format string" I'm using as well)

Mostly it works fine:

Example Artist - Album Name (2024)\01 - Example Artist Feat. Another Artist - The Title Of The Song.flac

  • %albumartist% = Example Artist
  • %album% = Album Name
  • %year% = 2024
  • %track% = 01
  • %artist% = Example Artist Feat. Another Artist
  • %title% = The Title Of The Song

But sometimes the album name contains parentheses and I want to keep those in the %album% tag:

Example Artist - Album Name (Additional Name) (2024)\01 - Example Artist Feat. Another Artist - The Title Of The Song.flac

  • %albumartist% = Example Artist
  • %album% = Album Name
  • %year% = Additional Name) (2024
  • %track% = 01
  • %artist% = Example Artist Feat. Another Artist
  • %title% = The Title Of The Song

In these cases I've to fix the %album% and %year% tags manually (or with tag - tag).

I would like to avoid this. Is it possible?

I doubt that - as the opening and closing brackets are no unique separator. You would have to use an action of the type "Guess value" with a preparation with a regular expression.

A workaround would be if you replace the opening and closing bracket in the few foldernames from
Example Artist - Album Name (Additional Name) (2024)
to
Example Artist - Album Name [Additional Name] (2024)

Then - as @ohrenkino already wrote - the brackets for the "Additional Name" would be unique to differentiate from the brackets around "2024" and you would get
image

You could change your format string so that you only have to change the album-tag (You would have to add a closing bracket in ALBUM):
%albumartist% - %album%) (%year%)\%track% - %artist% - %title%