Filename to tag Help (Exclude Characters)


#1

I want to transfer the filename to artist and title tag but i want to exclude the last characters (Key) & (Bpm) from the title.

Calvin Harris ft Sam Smith - Promises (CK intro) (Clean) 2A 123.mp3

Calvin Harris ft Sam Smith - Promises (Clean) 2A 123

What String should i use?


#2

Several routes lead to Rome.
You could either simply import the whole string into title and then process the TITLE field
or
you use an action of the type "Guess value" instead of the convert function
Guess value
Source: $regexp('Calvin Harris ft Sam Smith - Promises (CK intro) (Clean) 2A 123',\d. \d+$,)
Pattern: %artist% - %title%

resp.
Source: $regexp(%_filename%,\d. \d+$,)
Pattern: %artist% - %title%


#3

This is working except when there is the number 1 in front of the key, for example if the filename is this:

Bryce Vine - Drew Barrymore (Dennis Blaze Club Rework) (Intro) (Dirty) 10A 80

the result in the title is:

Drew Barrymore (Dennis Blaze Club Rework) (Intro) (Dirty) 1

also it would be nice to know how could i do the same thing if i was proccessing the title only.

Thanks for the help!


#4

You could use instead of

Source: $regexp(%_filename%,\d+. \d+$,)
Pattern: %artist% - %title%

Instead of an action of the type "Guess value" use an action of the type "Format value" for TITLE
Format string: $regexp(%title%,\d+. \d+$,)


#5

This one is working correctly!

Thanks for the support and the help!