Skip to content

MusicBrainz artist ID misattribution #1545

@eliasbe

Description

@eliasbe

Description

When scanning albums with multi-value MUSICBRAINZ_ALBUMARTISTID tags (semicolon-separated, as written by MusicBrainz Picard / beets), LMS takes the first ID and assigns it to the combined artist contributor. This ID then acts as a global lookup key, so any subsequent album with that same MusicBrainz Artist ID gets attributed to the wrong contributor.

This is scan-order dependent. Whichever artist contributor gets created first "claims" the shared MB ID.

To Reproduce

  1. Have a local library with solo albums by an artist and a collaborative album (in my case it was Björk and Björk & Tríó Guðmundar Ingólfssonar). The collaborative album's files should have a multi-value MUSICBRAINZ_ALBUMARTISTID where the first ID is the solo artist's
  2. Scan the library. -> All the artists albums should be organized under whichever contributor was scanned first.
  3. Change the folder name so that the scan order changes. -> Now all the artists albums should be organized under the other contributor.

In my specific case all of Björk's solo albums showed up under "Björk & Tríó Guðmundar Ingólfssonar" in the web UI. When I changed the name of the directory for the trio and rescanned, all the albums were listed under Björk, including the collaborative one.

I verified this by querying library.db since all the tags looked clean. There was one outlier without a musicbrainz id that gave it away.

Expected behavior

I expected albums with ALBUMARTIST=Björk to be attributed to contributor "Björk", regardless of scan order.

LMS should not use a single ID from a multi-value MUSICBRAINZ_ALBUMARTISTID field as the canonical ID for a combined artist. Either parse all IDs and match appropriately, or prefer the ALBUMARTIST text tag for contributor assignment and use MB IDs only for the matching artist.

System Information:

  • OS: Proxmox LXC container
  • Hardware: x86_64
  • Web skin: Material
  • Browser: chromium
  • LMS Version: 9.1.0

Additional context

I fixed my specific case by swapping the MB IDs on the collaborative album and it's working fine. But I thought you should know about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions