using tag data and filename to new tag

Hi dear friends, I have this issue and I cannot find a straight way to do it.

My Filename is:
01-My Love-George Flo(18-08-1950).mp3 - inside the () is the recording date

The Tag have this data:
My Love-George Flo (where George Flo is the singer)

Orq. Joe Greg (that's the music director)

So I try to have my TAG like this:

Title: My Love
Artist: Orq. Joe Greg with George Flo
Year: 18-08-1950 (or this can go in the comments)

There must be a way to do this, but I cannot find it.

Thanks in advance

To append the artist from title to the music director in ARTIST, move the artist from title first to a temporary field tmp_artist:
Action "Guess value" (import tag field) for %title%
Pattern: %title%-%tmp_artist%
Now append ARTIST with TMP_ARTIST:
Action "Format value" for ARTIST
Format string: %artist% with %tmp_artist%

You may now remove the field tmp_artist

A note on the recording date: the field YEAR only allows 4 digits for best compatibility. The field RELEASETIME allows year, month, day, hour, minute, second. So I would put it there.
Extract the recording date from the filename:
Pattern: %dummy%(%releasetime%)

Reformat the imported data to the correct format:
Action "Replace with regular expression" for RELEASETIME:
Search string:(\d+)-(\d+)-(\d+)
Replace string:$3-$2-$1T00:00:00Z

Create a action group >>>> Alt+6 then click :mt_new:
Add the following actions to that group and make sure they're in this order.

Action #1:
Action type: Format value
Formatstring: %artist% with $regexp(%title%,'.+?([^-]+$)',$1)

Action #2:
Action type: Format value
Field: TITLE
Formatstring: $regexp(%title%,'(^[^-]+).+',$1)

Action #3:
Action type: Format value
Field: YEAR
Formatstring: $regexp(%_filename%,'.+(\d{2}-\d{2}-\d{4}).+',$1)

Action #4:
Action type: Format value
Field: TRACK
Formatstring: $num($regexp(%_filename%,'^0*(\d+).+',$1),2)

Run this only once on your files and you're done.


You might want to format the track tag also:

Remove Action #4 to the above group if not required.



Change the 2 in the code above to control what padding you want in the track numbering.