Skip to content

MUSICBRAINZ_TRACKID is not truly unique in the MB Database (the field mapped to that tag) #1372

@mikeysas

Description

@mikeysas

This underlying issue was discovered when @crystalgypsy reported on the forum that a newly added album was not showing on the New Music list and eventually determined the reason was that the album contained a track with the same MBID as an older compilation album in their library. You can pick the thread at my post here.

I was not aware, but apparently between 2011 - 2013 MB changed their database internally and now have a RecordingID (unique to a recording but will be duplicated when that recording appears on multiple releases) and TrackID (unique to a recording, release, and track# with no duplicates). But in an attempt to not break existing tagging in folks libraries, the decision was made to map tags as follows (confusing to me):

  • MUSICBRAINZ_TRACKID = internal RecordingID (not unique)
  • MUSICBRAINZ_RELEASETRACKID = internal TrackID (unique)

References confirming the above:
https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html
https://community.metabrainz.org/t/what-does-musicbrainz-trackid-signify/650381

**Do note to make this even more annoying to think about, where as Picard does import both of the tags above, the standard MusicBrainz import for mp3tag still only imports MUSICBRAINZ_TRACKID. You need to install the MusicBrainz Expanded webscript to import MUSICBRAINZ_RELEASETRACKID.

I am documenting this issue so it is not lost, but not sure what the best solution is here and it is likely worthy of more discussion. I am not sure enough folks who rely on MBID tagging saw the Forum post on New Music. I wanted to post here and get your opinion @michaelherger first before creating a forum thread specific to this (if that would even be helpful). I appreciate your insight.

Additional thoughts:

  • Technically this has been an "issue" for a while, but I guess those that have this situation have not noticed that they had more than one track updating play stats and ratings on the same record in persist.db. Easy not to notice until someone had added a New album in 9.x with this situation.
  • Although the simple looking solution could be using MUSICBRAINZ_RELEASETRACKID, I think we need to be cautious about how that would impact folks including those that have MUSICBRAINZ_TRACKID only (maybe that could still be a fallback).
  • In the forum post @crytalgypsy proposed why not use the combination of Album and Track MBID's, but that may open other questions too.
  • The general issue of a user relocating or reorganizing their music library is still a problem that comes up and the New Music logic has only highlighted that more. Is it worth exploring other alternatives for that underlying problem that the current MBID logic is intended to handle?
  • I don't think this is an urgent problem that should be jumped on without being carefully thought about, but it is something in my opinion to be considered at some point as I don't think the current situation is ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions