Merge duplicate recordings between two editions of the same album with “mb. MASS MERGE RECORDINGS”

Tags: #<Tag:0x00007f05094d8c48>



Merges selected or all recordings from release A to release B

I think this is one of my oldest scripts.

You will often find within a release group, two editions of the same album which tracks link to duplicate recordings.
Merging recordings from those releases is very tedious to do manually.
This script lets you align local and remote tracklists and then it will do the merges for you.
You can either merge all or queue only specific tracks.
You can also match tracks by name and/or by artist credit (default is normal sequential tracklist order).
So it’s a help for the editor.

:warning: It can be a very destructive script, you have to understand what you are doing.
:warning: In particular you have to know what recordings to merge and not to merge.
:warning: Only merge when you are certain that two editions of an album contain the same tracks, for instance.

It’s also a very good help for the voters as it fills the edit note with all kinds of reviewing info like several similarity indicators, track context (release, track number, track name, etc.).
It can highlight problems with the merge edit (helps voting no) or give more confidence to vote yes.

Here is a demo (animated gif) that shows a MASS MERGE session starting from an RG merge review.

In this demo, you can’t see it but I have pressed Ctrl+Shift+m to invoke the MASS MERGE RECORDINGS window — you can alternatively simply click its button, a little bit down the release page right‐hand sidebar, to make it appear:

Some releases have a leading bonus track or other stuff like that, you can shift the remote release up and down with the drop down combo or with (up) and (down) arrow keys.
There are various indicators of similarity (track name, track length).

I hesitated long time before posting here because :warning: THIS SCRIPT IS VERY DANGEROUS :warning: as it does merge recordings — please use it very thoughtfully.

New MusicBrainz user scripts

This script is absolutely fantastic, especially for cases where someone adds a different version of a release (CD vs digital or whatever) with different recordings, or when a CD is re-released as part of a boxset. It’s saved me dozens of hours since I first installed it, and it makes MB editing so much nicer. Praise jesus! :pray:


I’ve also been using this a LOT recently!
Without it I don’t even know if merging recordings would be a feasible idea for me!

I use it very differently to how you’ve done it in your gif though jesus (just manually doing it by pasting over the release url) so I’m going to have to have a close look and see how you’re doing it there


It sounds you do the same.
It’s just that I was working on more than two releases at the same time so the GIF begins with how I used mb. MERGE HELPOR 2 to sort the releases by order of oldest release MBID first.
Then I try second oldest release recordings, third oldest release recordings, etc.
It’s kind of a special case.

Usually it’s just like you said:

  1. Open release A
  2. Click sidebar’s green MASS MERGE button (or shortcut Shift+Ctrl+M)
  3. Paste release B’s URL.


I agree, this is one of my favorites.


What happens to @derobert also happens to me so I try to check open edits after mass merge.
But the script, once migrated to web service mode, should visually compare both track and recording data.
This glitch usually indicates mislinked track to recording and should lead to medium edit instead of recording merge.

Weird behavior from mass merge script (false length matches)

Great script, thanks. Is there a way to shift the alignment at both ends? For example, if I want to merge tracks 7–9 and 4–6 of this release into tracks 10–12 and 13–15 respectively of this release, can I do that with a few clicks of your script or do I need to do the 6 merges separately?


I don’t know if you should merge those but, if so, you can:

  1. go to
  2. hit CTRL+M and paste
  3. press down arrow key 4 times to align remote tracks 7,8,9 with local tracks 10,11,12
  4. click their 3 Merge buttons (without waiting the end of previous merge, each click is queued)
  5. after 3 merges, press down arrow key 6 times to align remote tracks 4,5,6 with local tracks 13,14,15
  6. click their 3 Merge buttons (without waiting the end of previous merge, each click is queued)



Ah, thanks – it was the ability to merge one track at a time that I’d missed (because I hadn’t properly read your explanation above).