Hi, I'm trying to re tag some of my music files. I have my songs on plex, and the current artist tags have semicolons in them and that messes up the plex grouping by artist. For example artist A and artist A; B are different. So i want to rename the artists to just be the first one listed, and add the other artists in the song title with "(feat. ...)".
I had ChatGPT come up with actions for me to do the following in mp3tag and here's what it gave me.
Action 1: Format Value (for adding artists to the title if necessary)
Action type: Format value
Field: TITLE
Format string: $if($eql($strstr(%TITLE%,'(feat'),0),$ifgreater($sub($len(%ARTIST%),$len($regexp(%ARTIST%,'.*?; ',''))),%TITLE% (feat. $regexp(%ARTIST%,'.*?; (.+)$','$1')), %TITLE%))
This action checks if "(feat" is already in the title. If not, it adds "(feat. B, C)" based on the artists listed after the first one in the ARTIST tag.
Action 2: Format Value (for cleaning up the ARTIST tag)
Action type: Format value
Field: ARTIST
Format string: $regexp(%ARTIST%,'^(.+?); (.+)$',$1)
This action keeps only the first listed artist in the artist tag.
It can do action 2 just fine, but nothing happens with action 1. What should I change? Thanks!