Automatically remove duplicate fields

Hello @LyricsLover,

I have an example Tag

Hello 120\\120

I take the command in Mp3tag: Remove Duplicate fields

Field: Hello

To remove the Duplicate data \\120

I noticed that the data \\120 disappears from the Hello Tag and that Mp3tag saves it in the audio file

This operation is done manually:
Remove Duplicate fields

1st question: Is it possible for Mp3tag to do the operation automatically each time the data \\120 appears in the Hello Tag

2nd question: Is it possible to remove the data \\120 from the Hello Tag, like by an operation with a Refresh, without a save in the audio file by Mp3tag...

No. Every action has to be triggered explicitly by the user.

No. Every change to the tag is a change to the file which has to be saved to take effect.

Thanks @ohrenkino for your answers...

I think it would be nice if @Florian could add a choice: automatic or manual for some of his commands in Mp3tag

I doubt that this will be implemented due to possible undesirable side effects.
I bet that you have an action group that you use to unify the tags in your files.
If would simply add the action to that action group and there you almost have the automatism

Hello @ohrenkino, for the side effects following the automation, I do not have the knowledge on this subject, it is possible, I know that you have a very good knowledge, on the functions of the Mp3tag program...

I am doing tests for a group of actions of the tags in my files, to see the possibilities that Mp3tag offers in this area

You wrote some interesting things: If would simply add the action to that action group and there you almost have the automatism

Can you give me an example...

I assume that you have an action group that unifies tags like remove spaces, unwanted brackets, fields that you do not need.
I also assume that you call this action group only for new files and not every time that you open MP3tag.
And this special action group could be extended with action to remove duplicate fields.
E.g. here I have an action group that adapts a certain podcast


It would be easy to add an action to remove duplicate fields.

Hello @Ohrenkino, I find your test super interesting, I would like to reproduce this test, as you did

I could not find this Action page in Mp3tag, is it possible that I can also copy your data, to do the same tests as you...

Such a copy would not help you at all, because you don't have the same audiobook files and naming scheme as @ohrenkino.

Actions and Actions Groups are very individual. They only work for a specific part of your collection (like filenames, tags, directory structure, covers, lyrics ...). And only for your collection with your current situation (like hard disc drives & letters, music/movie format and so on).

You could start reading about Action Groups here:

You can press the keys Alt + 6 or the menu Actions -> Actions or click on the Actions icon in the Toolbar:
image

You open the collection of action groups via the menu Actions.

A copy of the data would only make sense if you booked the same podcast as I did and if you want to get the same manipulation - which I doubt.

The screenshot is introduced with

which AFAIK indicates an example, in this case to illustrate an action group with a lot of actions.
It would now be up to you to investigate how you could collect a number of actions in an action group that you carry out when you get new files and then add the action to remove duplicate fields there.

A big thank you to both of you, @ohrenkino and @LyricsLover

I understand that I have to enter my own data, it's logical

Thank you, I understand better how to go to programming

I click on Actions
I click on New
Name of action group: I place my title, example Podcast Sergius
Select action Type: Remove duplicate fields (example) \\TRACKNUM

In my work page, I added line

Remove duplicate fileds"\\TRACKNUM"

I can edit it and add other commands

I'm going to do some tests, it's very interesting...

ohrenkino, how to have this command, almost in automatism

Just a quick note (even if you say "example"):
There is no official field like TRACKNUM.

We only have a TRACK and a DISCNUMBER.

Your initial example 120\\120 seems to be a BPM, isn't it? :wink: :innocent:

That is not the correct syntax.
It should only be TRACKNUM as you only reference the field name.

Thanks @ohrenkino, for the correction :slightly_smiling_face: :+1:

@LyricsLover, you have only one correct answer and you are absolutely right (BPM)

... :wink:

The TAG TrackNum exists in the BSI Info Editor...
See my 3 images...

When you worked on my Tag Panel... You chose the Tag Track, because it is the standard and it works very well...

In my BSI Info Editor, when I program the only 2 Tags: Intro & Segue, because it is in seconds and not in Milliseconds, I end up with the Tag, TrackNum, which does not disturb the programming, that is why I do tests with this TAG before doing tests with the Tag BPM 120\\120 :smile: :+1:

@LyricsLover and @ohrenkino

The final goal of my tests, I was thinking why not have the 2 BPM tags in one and the same Tag, because the value of the data is %bpm% for the 2 tags BPM (BPM) and BPM (TBPM)

Which would be recognized by the BSI program and all other programs

I use the id3.exe program, it's possible

and it's normal that the final result in Mp3tag will be BPM 120\\120, I would need an automatic correction... BPM 120, preferably, without saving the Audio file...

On the other hand, I learned a new programming in Mp3tag...

Thanks guys, for your help and your expertise... :+1:

I think we discussed this - and "all" is definitely too all-encompassing.

This would be removed if you had MP3tag run the removal of duplicate fields automatically.
You would encounter one of the

@LyricsLover and @ohrenkino

ohrenkino, I know all this, I read you...

I was just thanking you both for your help, I was just explaining the purpose of my research...

In the end, I know that I can't do this programming with Mp3tag, that's okay...

I repeat myself, I thank you again, for your help to both of you...

@ohrenkino and @LyricsLover

Hello guys, I did a test: Here is a little video, about the command: Actions

About BPM & TBPM - Remove duplicate fields (Data)

You taught me a new command that I did not know, I find it great, I understand the basic principle of programming: Actions

Unfortunately the current programming about the 2 BPM tags, does not meet my needs...

On the other hand I will make a little Actions programming: To transfer several images from my Audio files at the same time in my images folder, in 2 small mouse clicks, it will save me time

A big thank you again to both of you... :+1:

-BPM & TBPM Remove duplicate fields-Test Sergius-Saterday 1 fév 2025 #20

What exactly do you try?
Please show us a screenshot with all the details of your Action (the one that manipulate your BPM "BPM (BMP & TBPM) Remove duplicate fields")