Skip to content

Album tag not saved when source is MusicBrainz #5886

@ngoc-minh-do

Description

@ngoc-minh-do

When import music

  • If manually select candidate from MucsicBrainz, the album tag is not saved.
  • If manually select candidate from Spotify, discogs, ... the album tag is saved.

Problem

Running this command in verbose (-vv) mode:

$ beet -vv import -msI --from-scratch /music/

Led to this problem:

root@04cb354e7f6b:/# beet -vvv import -msI --from-scratch /music1/
user configuration: /config/config.yaml
data directory: /config
plugin paths: 
fetchart: google: Disabling art source due to missing key
fetchart: lastfm: Disabling art source due to missing key
Sending event: pluginload
library database: /config/musiclibrary.blb
library directory: /music
Sending event: library_opened
Sending event: import_begin
Sending event: import_task_created
Sending event: import_task_start
fromfilename: Artist replaced with: Shane Filan 
fromfilename: Title replaced with:  Beautiful in White
chroma: chroma: fingerprinted b'/music1/Shane Filan - Beautiful in White.mp3'
chroma: matched recordings ['d207c6a8-ea13-4da6-9008-cc1db29a8a35'] on releases ['9ec75bce-60ac-41e9-82a5-3b71a982257d']
Looking up: /music1/Shane Filan - Beautiful in White.mp3
Searching for track ID: d207c6a8-ea13-4da6-9008-cc1db29a8a35
Sending event: mb_track_extract
Sending event: trackinfo_received
Track ID match.

/music1/Shane Filan - Beautiful in White.mp3
Sending event: before_choose_candidate

  Match (100.0%):
  Shane Filan - Beautiful in White
  MusicBrainz, Index None, Track None, 
  https://musicbrainz.org/recording/d207c6a8-ea13-4da6-9008-cc1db29a8a35
  ≠ Artist: Shane Filan  -> Shane Filan
  ≠ Title:  Beautiful in White -> Beautiful in White
Sending event: import_task_choice
Sending event: import_task_apply
0 of 1 items replaced
Sending event: database_change
Sending event: database_change
lastgenre: valid last.fm tags: ['pop', 'pop rock', 'easy listening', 'folk rock', 'europop']
lastgenre: existing genres taken into account: []
lastgenre: genre for track "Beautiful in White" (artist, whitelist): Pop
Sending event: database_change
Parsed query: AndQuery([NoneQuery('album_id', True)])
Parsed sort: NullSort()
Sending event: before_item_moved
Sending event: item_moved
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: database_change
Sending event: import_task_files
scrub: auto-scrubbing /music/Non-Album/Shane Filan - Beautiful in White.mp3
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
Sending event: item_imported
Sending event: import
Sending event: cli_exit

Here's a link to the music files that trigger the bug (if relevant):

Setup

  • OS: Linux
  • Python version: .12.11
  • beets version: 2.3.1
  • Turning off plugins made problem go away (yes/no):

My configuration (output of beet config) is:

plugins:
  - discogs
  - fetchart
  - embedart
  - convert
  - scrub
  - replaygain
  - lastgenre
  - chroma
  - web
  - fromfilename
  - deezer

directory: /music
library: /config/musiclibrary.blb
art_filename: albumart
threaded: yes
original_date: yes
per_disc_numbering: no

convert:
  auto: no
  ffmpeg: /usr/bin/ffmpeg
  opts: -ab 320k -ac 2 -ar 48000
  max_bitrate: 320
  threads: 1

paths:
  default: $albumartist/$album%aunique{}/$track - $title
  singleton: Non-Album/$artist - $title
  comp: Compilations/$album%aunique{}/$track - $title
  albumtype_soundtrack: Soundtracks/$album/$track $title

import:
  write: yes
  copy: yes
  move: no
  resume: ask
  incremental: yes
  quiet_fallback: skip
  timid: no
  log: /config/beet.log

lastgenre:
  auto: yes
  source: track
  force: yes

embedart:
  auto: yes

fetchart:
  auto: yes

replaygain:
  auto: no

scrub:
  auto: yes

replace:
  '^\.': _
  '[\x00-\x1f]': _
  '[<>:"\?\*\|]': _
  '[\xE8-\xEB]': e
  '[\xEC-\xEF]': i
  '[\xE2-\xE6]': a
  '[\xF2-\xF6]': o
  '[\xF8]': o
  '\.$': _
  '\s+$': ""

web:
  host: 0.0.0.0
  port: 8337

discogs:
  user_token: "user_token"
  source_weight: 0.0

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