# Problem deriving artist from filename

**URL:** <https://community.mp3tag.de/t/problem-deriving-artist-from-filename/8916>\
**Category:** Support\
**Created:** [September 9, 2009, 5:10pm UTC](https://community.mp3tag.de/t/problem-deriving-artist-from-filename/8916 "2009-09-09T17:10:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [September 10, 2009, 2:00am UTC](https://community.mp3tag.de/t/problem-deriving-artist-from-filename/8916/3 "2009-09-10T02:00:08Z")

</div>

Using Mp3tag's special mask features you do not have to do complicated math.

Have a look at the filename structure.  
Choral Fantasy -- Op. 80\_Otto Klemperer\_New Philharmonia Orchestra\_Daniel Barenboim (piano), John Alldis Choir.flac  
part1 -- part2\_part3\_part4\_part5

For parts you do not want to extract you simply use the dummy placeholder, otherwise use the appropriate named placeholders.  
If you want to extract only the artist part you can write such a mask:  
%dummy% -- %dummy%_%dummy%_%dummy%\_%artist%

1. You can use converter.

 

**Convert** | **Filename - Tag** | **ALT+2**  
_Select format string_  
Examplestring: Choral Fantasy -- Op. 80\_Otto Klemperer\_New Philharmonia Orchestra\_Daniel Barenboim (piano), John Alldis Choir.flac  
Formatstring: **%dummy% -- %dummy%_%dummy%_%dummy%\_%artist%**  
Preview  
**artist** | Daniel Barenboim (piano), John Alldis Choir

 
1. You can use action.  
_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format:_ **%_filename%_**  
_Guessing pattern:_ **%dummy%÷--÷%dummy%%dummy%_%dummy%_%artist%**  
_Note: Replace one special ÷ character with one space character._

DD.20090910.0606.CEST

---

_[View the full topic](https://community.mp3tag.de/t/problem-deriving-artist-from-filename/8916)._
