# Removing second artist within filename

**URL:** <https://community.mp3tag.de/t/removing-second-artist-within-filename/63083>\
**Category:** Support\
**Created:** [December 13, 2023, 7:36pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083 "2023-12-13T19:36:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)\
**Post date:** [December 13, 2023, 7:36pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/1 "2023-12-13T19:36:42Z")

</div>

Hello,

i have two artist within my filename. ex. 3 YEARS HOLLOW ♫ CLINT LOWERY . FOR LIFE . 2014

i like to remove the second one olny. i have try Covert tag to filename using $cut(left and right) with no luck. my process was  
convert tag - filename  
string: $cutleft(%\_filename,#) #=spaces.  
can anyone tell me how i do this please. i have lots of files like this and would like to remove all 2nd artist from each file in one shot if possible, Thank You

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [December 13, 2023, 7:45pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/2 "2023-12-13T19:45:11Z")

</div>

What character divides the 2nd artist in all your filenames?  
Is it the `♫` between HOLLOW and CLINT?

Only if you find a unique character you can create an automated way to split/remove the 2nd artist.

BTW:  
What content do you have in your ARTIST and TITLE tag?

---

<div class="post-metadata">

**Author:** ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)\
**Post date:** [December 14, 2023, 12:32pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/3 "2023-12-14T12:32:47Z")

</div>

Thanks for the reply, yes ♫ is the divider between the artist. the tag info is the same as the artist and title which i like to keep as is.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [December 14, 2023, 1:09pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/4 "2023-12-14T13:09:24Z")

</div>

> [@dp19](#):
>
> the tag info is the same as the artist and title which i like to keep as is.

Just to be sure:  
Your ARTIST tag contains  
`3 YEARS HOLLOW ♫ CLINT LOWERY`  
Your TITLE tag contains  
`FOR LIFE`  
Your YEAR tag contains  
`2014`  
and you want to have this different filename  
`3 YEARS HOLLOW - FOR LIFE - 2014`  
or do you really prefer the one with dots  
`3 YEARS HOLLOW . FOR LIFE . 2014`

---

<div class="post-metadata">

**Author:** ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)\
**Post date:** [December 14, 2023, 2:36pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/5 "2023-12-14T14:36:19Z")

</div>

That is correct and i like the filename as 3 YEARS HOLLOW . FOR LIFE . 2014

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [December 14, 2023, 2:49pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/6 "2023-12-14T14:49:22Z")

</div>

You have the choice

**a) Convert Tag -\> Filename**  
with this Format string:  
`$regexp(%ARTIST%,(.*) ♫ (.*),$1) . %TITLE% . %YEAR%`  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/f/f8ffd79c517d7dfc1540405680772a69d0762c66.png)

or

**b) Convert Filename -\> Filename**  
Old filename pattern:  
`%1 ♫ %2 . %3 . %4`  
New filename pattern:  
`%1 . %3 . %4`  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/6/66d3a283827b1b719a7c3b6e49e07e34a07a4af9.png)

---

<div class="post-metadata">

**Author:** ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)\
**Post date:** [December 14, 2023, 4:35pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/7 "2023-12-14T16:35:11Z")

</div>

wow i would have never figyre tose out Thanks muchly. will these options works on multi filenames from different artist at once?

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [December 14, 2023, 4:54pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/8 "2023-12-14T16:54:44Z")

</div>

Sure, as long as your multi filenames from different artist have exactly the same structure as in your example  
` 3 YEARS HOLLOW ♫ CLINT LOWERY . FOR LIFE . 2014`  
that is  
`Artist 1 ♫ Artist 2 . Title . Year`  
or more detailled:  
**Artist 1**  
space  
♫  
space  
**Artist 2**  
space  
dot  
space  
**Title**  
space  
dot  
space  
**Year**

Otherwise you have to adjust the "Format string" or the "old filename pattern" according to your existing filename.

---

<div class="post-metadata">

**Author:** ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)\
**Post date:** [December 14, 2023, 5:31pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/9 "2023-12-14T17:31:16Z")

</div>

ok sweet! Thank You i excited to see what happens.

---

<div class="post-metadata">

**Author:** ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)\
**Post date:** [December 14, 2023, 5:59pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/10 "2023-12-14T17:59:55Z")

</div>

filename to filename works great thanks!!

---

<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:** [January 13, 2024, 6:00pm UTC](https://community.mp3tag.de/t/removing-second-artist-within-filename/63083/11 "2024-01-13T18:00:37Z")

</div>

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