Writing track numbers like 01 instead of 1?


#1

Hi all,

Firstly let me say that this is by far the best software I have ever used. Fast, useful and not bloated!

My only question is if it's possible to make track numbers like 01 instead of 1, when getting track names from Databases?

Thank you,
Nel


#2

Hi Nel,

you can create a new action

Action type: Format value
Field: TRACK
Formatstring: $num(%track%,2)

to format the track numbers.

Kind regards,
Florian


#3

Wow, is Florian of MP3Tag writing to me? I am flattered!

Thanks so much for your help! I will try to figure out how to do it.

Thanks again,
Nel

I have added the action and it worked like a charm, thank you!

I wonder if it's possible to do this with actions:

If you have a song title like:

To The Faithful Departed Featuring Oasis

Is it possible to write it like:

To The Faithful Departed [Featuring Oasis]

Basically to put anything that starts with Featuring into brackets till the end of the title.

Hope that makes sense. :slight_smile:

Thanks,
Nel


#4

Action #1:
Action type: Replace with regular expression
Field: ARTIST
Regular expression: Featuring (.*)$
Replace matches with: [Featuring $1]

[ ] case-sensitive comparison

Of course, replace ARTIST by the field you want to modify.


#5

Thanks so much. This forum is great and people are so friendly.

You mean I should turn off case sensitive, right?

Is it also possible to change files names using Track numbers? As in Track #05 (in tag) -> Track 05 (in filename)?

Lastly is there a way I can replace "And" with &? It might cause trouble if it only searches for "and", but I think " and " would be better. Does it matter if it's And or and?

Thanks so much again,
Nel


#6

Correct.

You can have a new filename built by using the :mt_ttf: Tag - Filename converter with a formatstring like $num(%track%,2) %title% for example.

You can tell Mp3tag to replace whole words only:

Action #1:
Action type: Replace
Field: TITLE
Original: and
Replace with: &

[x] only as whole word

[ ] case-sensitive comparison


#7

Thanks Sebastian! Very helpful.

Do you know where these settings are stored? I reinstalled windows but have the old mp3tag directory. Can I bring the actions I have added?

Thanks so much again,
Nel


#8

They are stored in "%APPDATA%\Mp3tag\data\actions". You can enter that path as-is in the Run-Window (Start --> Run or WIN+R).


#9

Thanks Sebastian! You rule! I wish all software would be this compact and powerful, ie not bloatware like Adobe products!

Thanks,
Nel