# Featured Artists

**URL:** https://community.mp3tag.de/t/featured-artists/19742
**Category:** General Discussion
**Created:** [January 30, 2018, 5:59pm UTC](https://community.mp3tag.de/t/featured-artists/19742 "2018-01-30T17:59:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Mokona](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mokona/32/6730_2.png) [@Mokona](https://community.mp3tag.de/u/Mokona)
#### Post date: [January 30, 2018, 5:59pm UTC](https://community.mp3tag.de/t/featured-artists/19742/1 "2018-01-30T17:59:54Z")

</div>

I have searched through the forum, and tried a number of potential options, but have not quite found the right mix of actions for my needs. Some of what I found works, but only partially. I need a bit of help tweeking this code to the next level.

What I have:  
Artist: David Guetta Feat. Sam Martin  
Title: Lovers On The Sun

I need:  
Artist: David Guetta  
Title: Lovers On The Sun (Feat. Sam Martin)

This is the code I found, and it works, but just not the way I want it to. Now I want to ensure that the featured artist(s) appear in parenthesis, and any extra spaces are deleted if I have not accounted for those too.

**1st Format**** Format Value**

Field: TITLE  
Format string: %title% feat $mid(%artist%,$add($strstr($lower(%artist%),' feat'),6),$len(%artist%))

**2nd Format**** Format Value**

Field: ARTIST  
$left(%artist%,$add($strstr($lower(%artist%), feat),-1))

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 30, 2018, 6:33pm UTC](https://community.mp3tag.de/t/featured-artists/19742/2 "2018-01-30T18:33:23Z")

</div>

> [@Mokona](#):
>
> ...  
> What I have:  
> Artist: David Guetta Feat. Sam Martin  
> Title: Lovers On The Sun
> 
> I need:  
> Artist: David Guetta  
> Title: Lovers On The Sun (Feat. Sam Martin)  
> ....

What you could do:

1. action of the type "Guess value" for TITLE  
Guessing pattern: %artist% Feat. %feat\_tmp%

2. action of the type "Format value" for TITLE  
Format string: %title% (Feat. %feat\_tmp%)

3. action: Remove field feat\_tmp

---

<div class="post-metadata">

### Author: ![Mokona](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mokona/32/6730_2.png) [@Mokona](https://community.mp3tag.de/u/Mokona)
#### Post date: [January 30, 2018, 7:27pm UTC](https://community.mp3tag.de/t/featured-artists/19742/3 "2018-01-30T19:27:04Z")

</div>

> [@ohrenkino](#):
>
> What you could do:
> 
> 1. action of the type "Guess value" for TITLE  
> Guessing pattern: %artist% Feat. %feat\_tmp%
> 
> 2. action of the type "Format value" for TITLE  
> Format string: %title% (Feat. %feat\_tmp%)
> 
> 3. action: Remove field feat\_tmp

Just tried that, and it did not work. The artist line did not change at all, and the title line simply added the raw text of "(Feat. )". The results were:

Before:  
Artist: Calvin Harris Feat. Tinie Tempah  
Title: Drinking From The Bottle

After:  
Artist: Calvin Harris Feat. Tinie Tempah  
Title: Drinking From The Bottle (Feat. )

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 30, 2018, 8:19pm UTC](https://community.mp3tag.de/t/featured-artists/19742/4 "2018-01-30T20:19:43Z")

</div>

sometimes i do not know where I have my head.  
the first action should have been for artist and not for title.  
Sorry.

1. action of the type "Guess value" for artist  
Guessing pattern: %artist% Feat. %feat\_tmp%

---

<div class="post-metadata">

### Author: ![Mokona](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mokona/32/6730_2.png) [@Mokona](https://community.mp3tag.de/u/Mokona)
#### Post date: [February 1, 2018, 9:36pm UTC](https://community.mp3tag.de/t/featured-artists/19742/5 "2018-02-01T21:36:16Z")

</div>

sometimes i do not know where I have my head.  
the first action should have been for artist and not for title.  
Sorry.

1. action of the type "Guess value" for artist  
Guessing pattern: %artist% Feat. %feat\_tmp%  
[/quote]

that didn't do anything at all. The result is identical to before. Here is what I have. See the screen shot. I am still new to these actions.

![](https://community.mp3tag.de/uploads/default/original/2X/9/9d37ce769c6fa039f9ccb2c8dc9b30eed94f7e43.png)

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [February 2, 2018, 5:10am UTC](https://community.mp3tag.de/t/featured-artists/19742/6 "2018-02-02T05:10:47Z")

</div>

> [@Mokona](#):
>
> that didn't do anything at all. ... See the screen shot.

Your screenshot shows:  
Guess values "artist": ....  
but should show  
Guess values %artist%: ...

That is because in the Guess-values-action you did not select "artist" from the menu but wrote manually "artist" for the source. Selecting from the list will write %artist% which you can write manually too.

---

<div class="post-metadata">

### Author: ![Mokona](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mokona/32/6730_2.png) [@Mokona](https://community.mp3tag.de/u/Mokona)
#### Post date: [February 9, 2018, 10:37pm UTC](https://community.mp3tag.de/t/featured-artists/19742/7 "2018-02-09T22:37:04Z")

</div>

> [@poster](#):
>
> Your screenshot shows:  
> Guess values "artist": ....  
> but should show  
> Guess values %artist%: ...
> 
> That is because in the Guess-values-action you did not select "artist" from the menu but wrote manually "artist" for the source. Selecting from the list will write %artist% which you can write manually too.

Okay, that seems to work. Thanks.

Before:  
**Artist:** Maroon 5 Feat. Wiz Khalifa  
**Title:** Payphone

After:  
**Artist:** Maroon 5  
**Title:** Payphone (Feat. Wiz Khalifa)

However I do have a question, I apparently must review the album for ONLY those tracks that have a featured artist, otherwise I end up with a second issue. If I DO select the entire album rather than picking each track w/featured artist, then this happens when there is NOT a featured artist. Is it possible to have this based on ONLY when there is a featured artist/artists?

Before:  
**Artist:** Flo Rida  
**Title:** Whistle

After:  
**Artist:** Flo Rida  
**Title:** Whistle (Feat. )

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [February 10, 2018, 6:16am UTC](https://community.mp3tag.de/t/featured-artists/19742/8 "2018-02-10T06:16:58Z")

</div>

> [@Mokona](#):
>
> However I do have a question, I apparently must review the album for ONLY those tracks that have a featured artist, otherwise I end up with a second issue. If I DO select the entire album rather than picking each track w/featured artist, then this happens when there is NOT a featured artist. Is it possible to have this based on ONLY when there is a featured artist/artists?

It is always a good idea to filter the files in MP3Tag.  
You can filter them if you put  
artist HAS Feat.  
in the filter.

But it is also possible to restrict the "Format-Values-Action" for the cases where %feat\_tmp% is present:  
Format String: %title%[(Feat. %feat\_tmp%)]
