# Convert tag - filename to include mixartist field with formating

**URL:** <https://community.mp3tag.de/t/convert-tag-filename-to-include-mixartist-field-with-formating/45926>\
**Category:** Support\
**Created:** [July 16, 2019, 6:46pm UTC](https://community.mp3tag.de/t/convert-tag-filename-to-include-mixartist-field-with-formating/45926 "2019-07-16T18:46:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ascendo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/cc9497/32.png) [@ascendo](https://community.mp3tag.de/u/ascendo)\
**Post date:** [July 16, 2019, 6:46pm UTC](https://community.mp3tag.de/t/convert-tag-filename-to-include-mixartist-field-with-formating/45926/1 "2019-07-16T18:46:48Z")

</div>

Hi all,

I use DISCOG to pull my tags, then use the Convert \> Tag - Filename operation

`%artist% - %album% (%year%)\$num(%track%,2). %artist% - %title%`

which gives me a filename

`DJ Khaled - Major Key (2016)\11. DJ Khaled - Don't Ever Play Yourself.flac`

Though I'd like the featuring artist to be included in the filename

Discog link: [https://www.discogs.com/DJ-Khaled-Major-Key/release/8849730](https://www.discogs.com/DJ-Khaled-Major-Key/release/8849730)

I can see these are copied into the MIXARTIST field as

`Busta Rhymes (featuring); Fabolous (featuring); Fat Joe (featuring); Jadakiss (featuring); Kent Jones (featuring)`

Is there any way to automate this so the filename instead looks like

`DJ Khaled - Major Key (2016)\11. DJ Khaled - Don't Ever Play Yourself (feat Jadakiss, Fabolous, Fat Joe, Busta Rhymes & Kent Jones).flac`

Thanks in advance!

---

<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:** [July 17, 2019, 5:18am UTC](https://community.mp3tag.de/t/convert-tag-filename-to-include-mixartist-field-with-formating/45926/2 "2019-07-17T05:18:54Z")

</div>

you could add  
`(feat $replace(%mixartist%, (featuring),,;,','))`

---

<div class="post-metadata">

**Author:** ![ascendo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/cc9497/32.png) [@ascendo](https://community.mp3tag.de/u/ascendo)\
**Post date:** [July 17, 2019, 6:00am UTC](https://community.mp3tag.de/t/convert-tag-filename-to-include-mixartist-field-with-formating/45926/3 "2019-07-17T06:00:50Z")

</div>

Awesome! that pretty much does what I needed - thank you!!

For the same example I now get

`DJ Khaled - Don't Ever Play Yourself (feat. Busta Rhymes, Fabolous, Fat Joe, Jadakiss, Kent Jones).flac`

I'm guessing in the same example I can't automate an & instead of a , for the last artist? example below

`DJ Khaled - Don't Ever Play Yourself (feat. Busta Rhymes, Fabolous, Fat Joe, Jadakiss & Kent Jones).flac`

Additionally for tracks that don't have featuring role, can it just not do nothing ?

Cheers,

---

<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:** [July 17, 2019, 6:21am UTC](https://community.mp3tag.de/t/convert-tag-filename-to-include-mixartist-field-with-formating/45926/4 "2019-07-17T06:21:05Z")

</div>

try  
`$regexp($replace(%mixartist%, (featuring),,;,','),'(.*), (.*)',$1 & $2)`  
and when you set the whole extra bit in square brackets, it should become optional

---

<div class="post-metadata">

**Author:** ![ascendo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/cc9497/32.png) [@ascendo](https://community.mp3tag.de/u/ascendo)\
**Post date:** [July 17, 2019, 9:13am UTC](https://community.mp3tag.de/t/convert-tag-filename-to-include-mixartist-field-with-formating/45926/5 "2019-07-17T09:13:19Z")

</div>

> [@ohrenkino](#):
>
> try  
> `$regexp($replace(%mixartist%, (featuring),,;,','),'(.*), (.*)',$1 & $2)`

You da man!

Thank you!

---

<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:** [August 16, 2019, 9:13am UTC](https://community.mp3tag.de/t/convert-tag-filename-to-include-mixartist-field-with-formating/45926/6 "2019-08-16T09:13:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
