Extracting title and artist from title using action and then reorganise the display order in the title

Hello there, I have files with poor data and they need fixing.

I am thinking that there must be a way using actions and it will involve guess values, but I am not sure how exactly to achieve what I want:

Firstly, as in this screenshot:

    • I need mp3tag to extract the title and artist from the title alone. Then this needs to be added to the appropriate fields title and artist. This will enable me to fix the filenames easily as well.
    • I need mp3tag to pick up any occurrences of ft., feat. or featuring., remove any square or rounded brackets, change to ft. regardless of which sort of feat. was used originally and add featuring data to the end of the title within the artist brackets. So the title should be 'Rockabye (Clean Bandit ft. Sean Paul & Anne-Marie) rather than the original 'Clean Bandit - Rockabye [feat. Sean Paul & Anne-Marie]'

Use an action of the type "Guess value"
Source: %title%
Pattern: %artist% - %title%

I think you already got a fair number of hints how to get along with brackets and stuff:


and if this is not enough, try the search word "move feat" in this forum.

1 Like

Thank you for your comprehensive reply. I have semi got this working.

What it does at the moment is correct the artist by extracting from the filename, put this into the artist and albumartist fields, change square brackets with round.

I want to create a %feat_artist% tag so that this can be extracted and input into the filename.

Example of file to be changed:

I have tried to incorporate this into an action but it does not update the 'Feat Artist Check' column in mp3tag.


I don't know why this is.

At the moment, the end result of using this action is:

5 Cold Water (feat. Justin Bieber & M0) (Major Lazer feat. ).mp3

Instead of finding (and changing to feat.) any instance of any variant of ft. in or outside of brackets and adding all that data after the artist name, it puts it in the wrong order:

It should be 5 Cold Water (Major Lazer feat. Justin Bieber & M0).mp3

I think the %track in that action is missing a % - it should be %track%

Thanks for your reply. There was a % missing but adding it didn't fix the problem. Still can't figure out how to fix it.

You also had the erroneous regular expressions in the list of actions (cf. actions 2 and 3).

If you enjoy building complex action groups, please ensure step by step that each action is performing the changes you envision.

Thanks for your reply Florian. Before integrating into this action group, I tested action 2 and 3 and they do work.

It's something later on that isn't working.

I also need to try and cover instances where there is no artist in the filename but one does feature in the artist field, like in the example below:

It's probably due to to a non-matching format string at "Guess values".

Look, Cold Water (feat. Justin Bieber & M0) doesn't include "%track%", " feat.", still has the featuring artist in parentheses and so on. So it really doesn't match your format string
%track% %title% feat. %feat_artist%

From now on, please refrain from posting complex action groups that are not working and ask what's wrong. There are too many of your topics following this pattern already. It's not the purpose of this community and I find it disrespectful of people's time.

Instead, try to identify by yourself what's not working. Trace it down to the one action that doesn't produce what you're intending. If you don't understand why, you're welcome to ask about the detail and learn from that.

There is this quote, which I like in this context

Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.

I hope you learn to fish, given the vast resources that are available and the helpful community.