# Merging two artists into the diretory name

**URL:** https://community.mp3tag.de/t/merging-two-artists-into-the-diretory-name/2855
**Category:** Support
**Created:** [February 2, 2006, 1:15am UTC](https://community.mp3tag.de/t/merging-two-artists-into-the-diretory-name/2855 "2006-02-02T01:15:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ydope](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Ydope](https://community.mp3tag.de/u/Ydope)
#### Post date: [February 2, 2006, 1:15am UTC](https://community.mp3tag.de/t/merging-two-artists-into-the-diretory-name/2855/1 "2006-02-02T01:15:22Z")

</div>

Hi,

I made two actions to name directory names the way I want: One for various artists albums and one for single artists releases.  
But sometimes there are EPs where there are only two artists involved. Using the VA action is a bit uncool. I would like to have an action that names the folder something like 'Artist1 & Artist2 - Blablabla'. Is this possible?

Greets, Y

---

<div class="post-metadata">

### Author: ![justified](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/b3f665/32.png) [@justified](https://community.mp3tag.de/u/justified)
#### Post date: [February 2, 2006, 11:23am UTC](https://community.mp3tag.de/t/merging-two-artists-into-the-diretory-name/2855/2 "2006-02-02T11:23:03Z")

</div>

> [@](#):
>
> Hi,
> 
> I made two actions to name directory names the way I want: One for various artists albums and one for single artists releases.Greets, Y
> 
> \<{POST\_SNAPBACK}\>

Hey Ydope!  
Can you please explain how to do this? I couldn't do even that.

---

<div class="post-metadata">

### Author: ![Ydope](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Ydope](https://community.mp3tag.de/u/Ydope)
#### Post date: [February 2, 2006, 12:06pm UTC](https://community.mp3tag.de/t/merging-two-artists-into-the-diretory-name/2855/3 "2006-02-02T12:06:36Z")

</div>

> [@](#):
>
> Hey Ydope!  
> Can you please explain how to do this? I couldn't do even that.
> 
> \<{POST\_SNAPBACK}\>

Make an action that formats \_DIRECTORY in this way %artist% - %album%  
Use %validate to make sure every character not allowed in a windows path is replaced with a legal character.

In my case I format \_FILENAME in this way %artist% - %album\_%filename%, but that's because I did this before the \_DIRECTORY 'tag' was invented by Florian. The result is the same.

---

<div class="post-metadata">

### Author: ![justified](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/b3f665/32.png) [@justified](https://community.mp3tag.de/u/justified)
#### Post date: [February 2, 2006, 12:45pm UTC](https://community.mp3tag.de/t/merging-two-artists-into-the-diretory-name/2855/4 "2006-02-02T12:45:39Z")

</div>

> [@](#):
>
> Make an action that formats \_DIRECTORY in this way %artist% - %album%  
> Use %validate to make sure every character not allowed in a windows path is replaced with a legal character.
> 
> In my case I format \_FILENAME in this way %artist% - %album\_%filename%, but that's because I did this before the \_DIRECTORY 'tag' was invented by Florian. The result is the same.
> 
> \<{POST\_SNAPBACK}\>

Ydope thanks, it has worked!

---

<div class="post-metadata">

### Author: ![Ydope](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Ydope](https://community.mp3tag.de/u/Ydope)
#### Post date: [February 9, 2006, 4:11pm UTC](https://community.mp3tag.de/t/merging-two-artists-into-the-diretory-name/2855/5 "2006-02-09T16:11:01Z")

</div>

OK I tried a lot of fiddling but it just doesn't work, my approach is this:

Assuming I have a directory with tracks from exactly two different artists:

1. Action:  
%\_directory%, %wwwpayment% and %wwwpublisher% are set to 'dummy'.

2. Action:  
I) IF %wwwpayment% = dummy THEN it is set to %artist%.  
II) IF %wwwpublisher% = dummy AND %wwwpayment% \<\> dummy AND %wwwpayment% \<\> %artist THEN it is set to %artist%.

3. Action:  
Now %wwwpayment% should contain the first artist and %wwwpublisher% should contain the second artist. Thus %\_directory% is set to '%wwwpayment% & %wwwpublisher% - %album%'

Unfortunatly something in 2 II) seems to go wrong because i always end up with the respective artist being put into %wwwpayment% AND %wwwpublisher%.

Heres my code for 2b):

Format WWWPUBLISHER tag:  
$if(and($eql(%WWWPUBLISHER%,dummy),$and($not($eql(%WWWPAYMENT%,dummy)),$not(%eql(%WWWPAYMENT%,%artist%)))),%artist%,)

for better reading (unfortunatly the forum cuts the leading spaces...):  
$if(  
and(  
$eql(%WWWPUBLISHER%,dummy)  
,  
$and(  
$not($eql(%WWWPAYMENT%,dummy))  
,  
$not(%eql(%WWWPAYMENT%,%artist%))  
)  
)  
,%artist%,)

The last $not case should make sure the artist is not put into %wwwpublisher% if it is already in %wwwpayment%. I don't understand why this doesnt work.  
If someone has a better idea for merging two artists into the directory name i would be delighted to know.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:19pm UTC](https://community.mp3tag.de/t/merging-two-artists-into-the-diretory-name/2855/6 "2026-02-09T12:19:37Z")

</div>


