Separate all album artist in one tag field

Hello,

After lot's of research is not possible to find what i'm looking for.

I want from one album with 12 Various Artist to extract all artist under one tag field and separate them with commas

eg: artist-a, artist-b, artist-c

My code are:

$loop(%artist%) %artist%$loopend()

How can separate the album artist with commas ?

Thank you in advance,
Mark

Although it is not quite clear what you want as you talk about albumartist and artist, I'll try:
$filename(artists.txt,utf-8)$loop(%track%)%artist%; $loopend()
Make sure that this is the only line in the export script.
You may replace the "; " with a separator of your liking.

Hi,

Thanks for your reply,

It's working well but seems need little more optimization the code. My results are below:

Deeon, Deeon, Deeon,Michel,Deeon,Jeroen,Deeon,Modern,Project, Deeon DJ Deeon, 

On above results i have two questions:

  1. How to prevent the duplicates artist on tag, in my case you can see the artist name "Deeon" many times there. I want to not duplicate artist.

  2. How can i remove the last comma from the last artist in line?

Thanks for your help on that.

$filename(artisten.txt,utf-8)$loop(%artist%,1)%artist%; $loopend()

With a separate action or manually

Replace with regular expression for ARTIST
Search string: ,$
(or , $)
Replace string:
(leave empty)

Hi,

it's strange because not limit the duplicate artist to one, keep generate same artist.

I'm not understand that point, it's possible to help me on code?

Thank you

So is it working? (Because I tried it on a set and it produces a list with just one entry for each artist regardless how often it appears in the files)

The code is all there .. if you are not sure about actions, see the faq on actions:
/t/967/1

Hi,

This code $filename(artisten.txt,utf-8)$loop(%artist%,1)%artist%; $loopend()

keep duplicate the artist name from the album. I just update my software to latest version and it's the same story.

Also try to access on the link you provide but seems not working sections.

Test also on clear export file with only that code but it's the same.

Thank you for your time

It has to be
$filename(artisten.txt,utf-8)$loop(%artist%,1)%artist%; $loopend()
Otherwise it repeats the artist.
I doublechecked, this code is OK.
I am not sure about any problems with the link but you are free to check the FAQs yourself: see the section on actions. A direct link to the FAQs is supplied in the header on this page.

I just copy&paste your code in to the clear (test) export file, duplicate artist come up again. I'm not sure why this happen to me.

It's past 48 Hours without solution, I keep searching and reading on forums.

Thanks for your help so far.

Regards

I put a filename in the export script:
$filename(artisten.txt,utf-8)...

So the file you check should be called "artisten.txt" and can be found in the folder of the sampler.
It is also possible that the artists data shows slightly different spelling or additional blanks so that they are actually not the same.

Really strange, i follow all the information you provide, checking also the same export file..
I have clear tag artist name, please see attached screenshot how artist are tagged and see below my results after optimized export.

Not sure what else to check..


Ah! That cleared it up:
You actually have the following names:
DJ Deeon,
DJ Deeon,Jeroen Search,
DJ Deeon,Michel De Hey,
DJ Deeon,Modern Anominal Techno Project,
As a string, these are 4 different things, even though they have shared parts in it.
AFAI can tell, the script works perfect.

Is "DJ Deeon" the ALBUMARTIST? Would you like to separate the data in ARTIST so that the part in front of the comma becomes the ALBUMARTIST and the part behind the comma becomes the ARTIST?

[quote name='ohrenkino' post='91684' ]Ah! That cleared it up:
You actually have the following names:
DJ Deeon,
DJ Deeon,Jeroen Search,
DJ Deeon,Michel De Hey,
DJ Deeon,Modern Anominal Techno Project,
As a string, these are 4 different things, even though they have shared parts in it.
AFAI can tell, the script works perfect.

Is "DJ Deeon" the ALBUMARTIST? Would you like to separate the data in ARTIST so that the part in front of the comma becomes the ALBUMARTIST and the part behind the comma becomes the ARTIST?[quote]

Got it. You are right!

Since now i try to separate them with comma what should be the code ?

$filename(artisten.txt,utf-8)$loop(%artist%,1)%artist%, $loopend()

Above code works good but keep the comma also in last artist on line, It's possible to keep it clear?

Thank you

As you see, the report takes the data from a single field just as it is, no interpretation, no comparison.

I would perhaps think about the naming scheme.
I would put
DJ Deeon as ALBUMARTIST
and the following names into ARTIST:
Jeroen Search
Michel De Hey
Modern Anominal Techno Project

Like that you get an ALBUM by DJ Deeon and still the other ones as contributing artists.

You can split the ARTIST field with an action of the type "Guess value".
Select the files
Click on the toolbar button "Action (Quick)"
Select an action of the type "Guess value"
Source: %artist%
Guessing pattern: %albumartist%,%artist%
Click OK.
Check the result.

And then it could be that you need a different export script:
$filename(artisten.txt,utf-8)%albumartist%:$loop(%artist%,1)%artist%, $loopend()

I got your point and it's clear! thank you very much. It's possible also to let me know the comma separator code ?

I done your test and results are blow

As you see there is comma on latest artist "Modern Anominal Techno Project," It's possible to filter the code and not produce comma on latest artist ?

Thank you for your help.

Also I like to donate the software as it's help me a lots with my staff!! What is the right link for it?

Thank you

Here is a little bit more complicated code. i don't know if it is the most elegant, but it works:

$filename(artists.txt,utf-8)$loop(1,1)%albumartist%: $puts(mp,1)$loop(%artist%,1)$puts(mp,%_counter%)$loopend()$loop(%artist%,1)%artist%$if($eql($get(mp),%_counter%),,', ')$loopend()$loopend()

And here is the link for donations:

http://www.mp3tag.de/en/donations.html