Author Topic: Edit existing virtual tag to display Title and feature artist  (Read 1226 times)

wasp

  • Jr. Member
  • **
  • Posts: 62
I am using the following virtual tag (from the thread created by member redwing), to show both the Title+Artist tag fields in one column.

Code
<Title>$If($First(<Artist>)=<Artists>,," (feat. "$If($Split(<Artists>,;,2)=$RSplit(<Artists>,;,1),$RSplit(<Artists>,;,1),$Replace($RxReplace(<Artists>,"^[^;]+;\s*(.*);\s*([^;]+)$","$1 & $2"),;,","))")")

However I encountered a little problem, that a lot of tracks in their Title tag, have the (feat.Whatever artist) or (feat Whatever artist).

So when I am using the virtual tag, I get double fields displayed. One derived from the above virtual tag and the (feat.Whatever artist) that is present in the Title tag.


Is it possible to disregard any (feat.Whatever artist) or (feat Whatever artist) that is present in the Title tag (without deleting it) but still using the above virtual tag to display both the Title and Artist in one column?

If the above doesn't make sense I can post an example

redwing

  • Guest
Use this code in place of "<Title>" in the beginning of the code you're using:

Code
$RxReplace(<Title>,"^(.*?)\s?\(feat.*","$1")

wasp

  • Jr. Member
  • **
  • Posts: 62