Skip to content

import: Media type won't get updated when retagging album #6036

@tuukkao

Description

@tuukkao

Problem

When retagging an already imported album with a MusicBrainz release id with import -L -S <mbid> and the id used for importing has a different media type, the new media type won't get written.

Steps to reproduce:

  1. Import an album from MusicBrainz that has releases in different formats (I tested with release c5292a70-ed3c-3bf3-b251-8a1e1e2abf23)

  2. Retag the same album using a release with different media, for example:

    beet import -L -S "4429cdd4-b0dd-3e69-bc0c-fc521c998550" album:Mezmerize
  3. Check the album's media:

    beet ls -a -f '$media' album:Mezmerize

    Media shows up as cd even though it should be 12" vinyl.

Setup

  • OS: Windows 11
  • Python version: 3.12.1
  • beets version: 2.4.0
  • Turning off plugins made problem go away (yes/no): no

My configuration (output of beet config) is:

directory: ~/mediabugtest/imported
# --------------- Main ---------------

library: ~/mediabugtest/library.db

import:
    write: yes
    move: no

# --------------- Plugins ---------------

plugins: musicbrainz
disabled_plugins: []
musicbrainz:
    search_limit: 5
    source_weight: 0.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: []

Metadata

Metadata

Assignees

No one assigned

    Labels

    musicbrainztriagedThe issue is understood, reproducible, and scoped; waiting on a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions