Export with multiple artists per track

Could not find any solution for this in the existing threads.

This is how my export file looks like:

$filename(E:\Temp\Tracklists\%album%.txt,ansi)
$loop(%track%)'['color=green']'%track%'['/color']' - '['color=#E35151']''['i']''['%_length%']''['/i']''['/color']' • '['artist']'$meta_sep(artist, & )'['/artist']': %title%
$loopend()

I’m using the double backslash to separate multiple artist. When I use the script mentioned above I get the following:

[color=green]02[/color] - [color=#E35151][i][03:21][/i][/color] • [artist]Minus 8 & Virag[/artist]: We're Waiting

But I want it like this:

[color=green]02[/color] - [color=#E35151][i][03:21][/i][/color] • [artist]Minus 8[/artist] & [artist]Virag[/artist]: We're Waiting

Is this possible?

Please show us a screenshot from Alt + T with your ARTIST field content of the track with Minus & Virage.

The solution for your export script depends on whether we see two or more ARTIST fields or only one ARTIST field.

Thanks LL, there are 2 artist fields:

In your export script, you want to combine every ARTIST content with a space, an & (ampersand) character and a space?

As you wrote:
[artist]Minus 8[/artist] & [artist]Virag[/artist]
this would be extended with 3 artist like this
[artist]Minus 8[/artist] & [artist]Virag[/artist] & [artist]Third Artistname[/artist]
and so on for every additional ARTIST?

What about artists whose names include an ampersand, such as
Simon & Garfunkel or Bob Marley & The Wailers?

replace the reference to the multiple artist $meta_sep(artist, & ) with
$replace($meta_sep(artist, == ),==,[/artist] & [artist])

@LyricsLover I want it as you can see here in track 02 & 05, but not as in track 9:

@ohrenkino This does not change the result, it’s like in track 09 then.

Try: $replace($meta_sep(artist,==),==,'['/artist']' & '['artist']')

(which takes care of the square brackets)

Yesssss, that’s it!

Thanks again.

@P.unkt

Just out of interest:
Which editor displays your exported %album%.txt result file in such a colourful way?

@ohrenkino Check this:

Thank you.
With your modified export script, I get this output in your mentioned BBCode Text Editor:

image

Could you please provide the complete working export script to see your example output without the [artist] and [/artist] keywords?

BTW: There is no closing [/artist] after the last artist. Is this correct?