How to strip the Artist and featuring Artist from Composer field?

Hello everyone,

Music purchased from iTunes have the composer tag which alongside the composer also includes artist and featuring artist like:

Kozbeats & Maitre Gims

Or

Kozbeats, Maitre Gims & Jul

In both of these examples, only Kozbeats is the composer while Maitre Gims and Jul are Artist and featuring Artist. So the question is how can the composer field be edited to only keep the "real" composer while stripping the artists?

I'm still new to MP3tag but I'm guessing this could be accomplished by the regular expressions, where the syntax could query the artist field for artist and title field for featuring artist and any matching words could be snuffed out from composer tag. It's just a guess though.

Any help will be greatly appreciated.

Thanks.

You could try an action of the type "Guess value"
Source: %composer%
Target: %composer%, %artist%
(which saves the Artist and feature artist in the field ARTIST)
or
Target: %composer%, %dummy%
which discards anything following the comma

Thank you for the response ohrenkino. Tried the first option but it copies the name of the composer in the composer field to the artist field. That's not what I was looking for.

Maybe I wasn't clear enough, here's what I want to do. I want to strip the names of artist and featuring artists from the composer field leaving whatever is in there.

Example:
Artist: Rim'k
Composer: Hades & Rim'k

Now I want to strip the artist "Rim'k" from composer field so that the value of the composer field would be "Hades"

The

Then I don't know what you did and which action you applied. I recommended the action "Guess value" and not "Replace with regular expression".

Then try an action like "Format value" for COMPOSER
Format string: $replace(%composer%,%artist%,, & ,,)

Hooray!!! That works.

Thank you from the core of my heart ohrenkino.

One last question, is it possible to also remove featuring artist from composer field? Consider an example.

Example:
Artist: Sadek
Title:La Paresse (feat. SCH)
Composer: Rednose, Sadek & SCH

As you can see, only Rednose is the composer while Sadek is Artist and SCH is featuring artist mentioned in title field. When I run the action, format string removes Sadek from Composer field. Will it be possible to extend the format string to also remove SCH from composer field?

It looks to me as though you want to delete anything following the comma.
So: couldn't you try the action of the type "Guess value" again?
Source: %composer%
Target: %composer%, %dummy%

Thank you for quick response.

Well, it's more complicated than that. Sometimes, Artist is mentioned before the composer in composer field. For example:

Artist: Maitre Gims
Composer: Maitre Gims & YalatifBeatz

If I remove everything following a comma, there's a risk that I might end up removing the real composer leaving only the artist. Moreover many a times, there's no comma and two entries are split with "&"

Yeah, so run the next action of the same type only with the ampersand as separator between the composer and the rest. You can combine both actions in an action group so that you get the clean up with just 1 action call.

Then I would get the correct structure and separators first. Otherwise, you get GIGO (garbage in, gargabe out). Or you treat the files that have the correct order first and then you treat the other ones - as you would have to do that anyway as these are different cases.

I've combined all three solution suggested by you in one action group and it does what I want for the most part. Some manual editing for composer field will also be required though.

For the time being, I'll stick to this solution. Do tell me if you have other ideas.

Thank you.

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