Filenames to tags and uppercase


#1

Howdy!

I searched the forum but found nothing that would help me.
It's really some strange files I have, help would be great :slight_smile:

My files have no tags. I want to get the tags from the filename.
The file name are like this

001 STAN Eminem.mp3
010 DREAM ON Depeche Mode.mp3

It's quite easy to see how to get the tags from the filesname but not sure if Mp3Tag could do this.

Cheers,
JedisThlm


#2

It's not possible, because there is no unique delimiter between the different parts in the filename.

Kind regards,
Florian


#3

Ok, thanks for the answer. Back manual tagging, hehe.


#4

In most case this works:

Step 1:

Action: Format value
Field: TITLE
Format string: $regexp(%_filename%,(.?)\s(\u\l.),$1 ~ $2)

For example: filename: 010 DREAM ON Depeche Mode
Result in field TITLE: 010 DREAM ON ~ Depeche Mode

Step 2:

Action: Guess value
Source format: %title%
Guessing pattern: %track% %title% ~ %artist%

Result in field TRACK: 010
Result in field TITLE: DREAM ON
Result in field ARTIST: Depeche Mode

You can change the title to 'Dream On' with this:

Action: Format value
Field: TITLE
Format string: $caps(%title%)

The only restriction is that the first part of the name of the artist mustn't be a one upper case letter (in this case it becomes the last part of the title).