Skip to content

Musicbrainz queries sometimes fail to find correct release in 2.4.0 #6073

@natchapman

Description

@natchapman

Importing AJJ's album Disposable Everything fails in 2.4.0, when it succeeded in 2.3.1:

[user@host music]$ beet version
beets version 2.4.0
Python version 3.13.7
plugins: musicbrainz
[user@host music]$ beet config
musicbrainz:
    source_weight: 0.0
    search_limit: 5
    host: musicbrainz.org
    https: no
    ratelimit: 1
    ratelimit_interval: 1
    genres: no
    external_ids:
        discogs: no
        bandcamp: no
        spotify: no
        deezer: no
        tidal: no
    extra_tags: []
disabled_plugins: []

[user@host music]$ beet import -t ajj/

/home/user/downloads/music/ajj (14 items)

Finding tags for album"AJJ - Disposable Everything".
  Candidates:
  1. (43.8%) Simon Bookish - Everything/Everything
             ≠ tracks, artist, unmatched tracks, ...
             MusicBrainz, CD, 2008, DE, Tomlab, TOM121, None
  2. (36.0%) Underworld - Everything, Everything
             ≠ tracks, unmatched tracks, artist, ...
             MusicBrainz, CD, 2000, US, Junior Boy’s Own, 63881-27078-2, None
  3. (36.0%) Underworld - Everything, Everything
             ≠ tracks, unmatched tracks, artist, ...
             MusicBrainz, CD, 2000, AU, Junior Boy’s Own, JBO1012542, None
  4. (24.7%) 遊佐春菜 - everything, everything, everything
             ≠ unmatched tracks, artist, album, ...
             MusicBrainz, Digital Media, 2022, XW, None, None, None
  5. (24.0%) Have a Nice Day! - Everything,Everything,Everything
             ≠ unmatched tracks, artist, album, ...
             MusicBrainz, Digital Media, 2018, XW, None, None, None
➜ # selection (default 1), Skip, Use as-is, as Tracks, Group albums,
Enter search, enter Id, aBort? b

The musicbrainz plugin added an additional parameter of alias: album to the query, presumably to help resolve an issue where the files are tagged with the alias instead of the canonical name. I don't see any reason this shouldn't work, but for whatever reason sometimes the musicbrainz api hates it:

album, artist, tracks works,
album, alias, artist, tracks does not.

changing the query to (album OR alias) AND artist AND tracks works, but means that if e.g. there's missing tracks, the search fails, so i'm not sure what a good solution is

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbugs that are confirmed and actionablemusicbrainzpluginPull requests that are plugins related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions