Move "Featuring" from Artist to Title

Regex is making my head hurt. I've just wasted two hours trying to figure it out, but failed. :frowning:

What I'm trying to do is create a couple of Actions to populate Multiple Artists from Title and vice versa.

Source
Title: SongTitle (ft ArtistOne & ArtistTwo)
Artist: AlbumArtist

Desired Result
Title: SongTitle (feat. ArtistOne & ArtistTwo)
Artist: AlbumArtist;ArtistOne;ArtistTwo

  1. I want to standardize all the different capitalizations/versions of Ft., Featuring, FT, feat, etc. and standardize it to "feat." in the title.

  2. I want to copy the featured artists from the Title and add it to the Artist field separated by ";" but make sure the primary/album artist is listed first.

Can someone please help?

There are so many suggestions in this thread - which one did you try, what was the outcome, where are you stuck?

  1. Action "Format value"
    Field: TITLE
    Formatstring: $replace(%TITLE%,'(ft ','(feat. ','(featuring ','(feat. ','(FT ','(feat. ')

  2. Action "Format value"
    Field: ARTIST
    Formatstring: %ARTIST%[';'$replace($regexp(%TITLE%,'^.+?\(feat\.\s(.+?)\)$','$1'),' & ',';')]

DD.20160603.1240.CEST

I kept using the "GUESS VALUE" function, which I think was the problem since I wanted to copy values rather than move them.

I solved it using your examples.

I use this to first standardize to "(feat. Artist1, Artist2 & Artist3)" in the Title:
Action: Format Value
Field: TITLE
Format string: $regexp(%TITLE%,'^(.+?)\s+[[({<]?\s*(?:featuring|feat\.?|ft\.?|with\.?)\s*([^])}>]+)[])}>]?(.*)$','$1 (feat. $2$3)',1)

Then transfer from all artists in the title to the Artist field:
Action: Format Value
Field: ARTIST
Format string: %ALBUMARTIST%[';'$replace($regexp(%TITLE%,'^.+?\(feat\.\s(.+?)\)$','$1'),' & ',';')]

Then this last function if there are more than three Artists that is separated by commas:
Action: Replace
Field: ARTIST
Original: ', '
Replace with: ';'

THANK YOU both so much!

Hi, old topic, I know, but I wanted to know how I could use Guess Values to move the features from the title tag to the artist tag.

Before
TITLE: Groovy Tony / Eddie Kane (feat. Jadakiss)
ARTIST: ScHoolboy Q

All titles have the features in parenthesis.

After
TITLE: Groovy Tony / Eddie Kane
ARTIST: ScHoolboy Q feat. Jadakiss

All tags have the parenthesis around the features removed.

Same question as him, but I can't find a reply to his question either.

To me it looks like the pattern from post #6

I tried that but it results in the ARTIST tag looking "ScHoolboy Q; Jadakiss" when really I'm just looking to move the entire "feat. ..." phrase (minus the parenthesis) from the TITLE to the ARTIST tag. I tried playing around with it but nothing seems to work.

  1. Action of the type "Guess value" for %TITLE%:
    Pattern: %title% (%tmp_feat%)

  2. Action of the type "Format value" for ARTIST
    Format string: %artist% %tmp_feat%

  3. Action of the type "Remove field" for tmp_feat

I have tried the above expression (screenshots attached), but the results were not as intended.

Action:
https://1drv.ms/i/s!AqhxjsOI4CLtsC440d30hoyiG1KT

Original Screenshot:
https://1drv.ms/i/s!AqhxjsOI4CLtsC3kEplNLKpJlGj9

Result Screenshot:
https://1drv.ms/i/s!AqhxjsOI4CLtsCxI0LY4LREfzHX8

I have racked my brain trying to figure out why the title is disappearing altogether, everything else appears to be working properly. Any suggestions?

Please attach your pictures to your post.

I have just tried the given example within ...
Move "Featuring" from Artist to Title
... and it works as designed.

DD.20170119.1410.CET

I tried that, but they were too big to upload. I'll try again

Action


Tag Panel (Original)


Tag Panel (Result)


I think it goes wrong because the %featartist% is not filled at the time of the value guessing.
I would think that you do not need the %featartist% field as the featuring part is moved to the artist field already with the guess value action.
So it should be %artist% instead of %featartist%

Thank you for uploading the three pictures.
The pictures are missing the involved columns for the tagfields ARTIST and TITLE.

There might be something mysteriously going on.
Check the space characters in the TITLE string:
select each empty character position and replace it with one space character.

There is attached a picture, which demonstrates that the formatstring is working right.


DD.20170121.2110.CET


See above post #70 ... there is no tagfield content %FEATARTIST% involved.
Move "Featuring" from Artist to Title
Maybe he runs an actiongroup with different interfering actions.

DD.20170121.2118.CET

Hmm, one screenshot from user DJ Dizzle shows a list of actions, having two actions of type "guess values", which are obviously modificated versions of my proposal.

User DJ Dizzle has modified my proposal formatstring in order to use tagfield FEATARTIST resp. ALBUMFEATARTIST instead of the tagfield ARTIST, ...
together with the tagfields TITLE resp. ALBUM.

If the modified formatstring does not give the expected result, then the involved tagfields do not contain the correct values to work with.
Maybe there is a non existing empty tagfield envolved.

DD.20170122.1010.CET

anyone got any ideas for a RegEx for:

I wish to have a blanket regex to change

From: Artist (feat. a, b, c, b & f) – Title
To: Artist – Title (feat. a, b, c, b & f)

Also if there is some form of text or information after the title like a remix or something the requirement would be

From: Artist (feat. a, b, c, b & f) – Title (oaonv Remix)
To: Artist – Title (feat. a, b, c, b & f) (oaonv Remix)

Perhaps this post: Move "Featuring" from Artist to Title