# Same filename to multiple tags

**URL:** https://community.mp3tag.de/t/same-filename-to-multiple-tags/51071
**Category:** Support
**Created:** [December 8, 2020, 12:02pm UTC](https://community.mp3tag.de/t/same-filename-to-multiple-tags/51071 "2020-12-08T12:02:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![TagNewbie65](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@TagNewbie65](https://community.mp3tag.de/u/TagNewbie65)
#### Post date: [December 8, 2020, 12:02pm UTC](https://community.mp3tag.de/t/same-filename-to-multiple-tags/51071/1 "2020-12-08T12:02:22Z")

</div>

Hello to all,

I would like to have the same directory structure apply to the same tags.

for example I want :  
RockPop\Artist (feat artist1) (feat artist2) (etc) - Title

To apply to genre = rockpop  
Album = rockpop and artist  
albumartist = (feat artist)  
and title = title

all this is one go.

is it possible ?

---

<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: [December 8, 2020, 12:06pm UTC](https://community.mp3tag.de/t/same-filename-to-multiple-tags/51071/2 "2020-12-08T12:06:40Z")

</div>

Have a look at the FAQs:

> [@Converters to rename files or to import tags](https://community.mp3tag.de/t/converters-to-rename-files-or-to-import-tags/8016/3):
>
> How to import parts of the filename into the tag? Importing tags from filenames and directory names can be done by using the [Converter \> Filename - Tag] Converter \> Filename - Tag. The basic concept is the notion of a format string which describes the structure of the name to import from. The format string is built of either standard text (e.g., Music), placeholders (such as %artist%, %title%, ...), or backslash characters \ that denote directory structures. Here is an example that imports t…

---

<div class="post-metadata">

### Author: ![TagNewbie65](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@TagNewbie65](https://community.mp3tag.de/u/TagNewbie65)
#### Post date: [December 8, 2020, 12:12pm UTC](https://community.mp3tag.de/t/same-filename-to-multiple-tags/51071/3 "2020-12-08T12:12:17Z")

</div>

sorry but this does not answer my question. I already do this technique but i run it twice because i need the same parent folder to be used twice and i need the album tag to be a combination of two entries. both album and artist.

---

<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: [December 8, 2020, 12:14pm UTC](https://community.mp3tag.de/t/same-filename-to-multiple-tags/51071/4 "2020-12-08T12:14:06Z")

</div>

Duplicating data means that you have to copy it somehow.  
So more than one step is needed.  
If you already have data in the fields, I would suggest that you use actions of the type "Format value" to add further text or the contents of tag fields.

---

<div class="post-metadata">

### Author: ![TagNewbie65](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@TagNewbie65](https://community.mp3tag.de/u/TagNewbie65)
#### Post date: [December 8, 2020, 12:18pm UTC](https://community.mp3tag.de/t/same-filename-to-multiple-tags/51071/5 "2020-12-08T12:18:59Z")

</div>

the problem i am having is that if i have multiple feat artists, mp3tag doesnt compute

%album%%artist% (%albumartist%) (%albumartist) - %title%

if i have only one (feat) then it will not take into acount the formula

---

<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: [December 8, 2020, 12:42pm UTC](https://community.mp3tag.de/t/same-filename-to-multiple-tags/51071/6 "2020-12-08T12:42:53Z")

</div>

I do not think that

> [@TagNewbie65](#):
>
> (%albumartist%) (%albumartist)

will ever work - I bet that only one piece of data will be taken for ALBUMARTIST.  
I would import everything of

> [@TagNewbie65](#):
>
> %artist% (%albumartist%) (%albumartist) -

into ARTIST  
Then I would create an action of the type "Guess value" with  
Source: `$replace($regexp(%artist%',(.*?) \((.*)\),$1==$2),') (',\\)`  
Target string: `%artist%==%albumartist%`  
This would then split the ARTIST field into 1 ARTIST and several fields of the type ALBUMARTIST.  
It should work from just one featured artist to several.  
You see the multi-value field in the extended tags dialogue.  
I am not sure that several albumartists are a valid format.

---

<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:28pm UTC](https://community.mp3tag.de/t/same-filename-to-multiple-tags/51071/7 "2026-02-09T12:28:58Z")

</div>


