Extract only one name from artist to the albumartist


#1

In the artist field, I have the following formatting convention.

Artist1; Artist2; Artist3

How can I copy only the first name that appears in the artist field, to the albumartist with the Format value action?


#2

Does it have to be that type of action?
If not, you could try "Guess value"
Source: %artist%
Target: %albumartist%; %dummy%


#3

No any action would do. It copies the first field. Thank you.

I am having a slight issue. If I have one artist name (without any other artists separated by a semicolon), I would like to copy that artist in the albumartist field. And if there are multiple artists separated by a semicolon, then copy the first artist, per your post above. Is it possible with one action?


#4

Yes, with a cludge.
Use the action of the type "Guess value"
Source: %artist%; %artist%
Target: %albumartist%; %dummy%

This produces always the pattern of a string with semicolon as separator. And as you only want to get the first part, it does not matter, how many parts follow the first semicolon and whether they each have different contents.


#5

That's great, exactly what I was looking for. Thank you!