Skip to content

Conversation

@snejus
Copy link
Member

@snejus snejus commented Jan 17, 2026

  • Update the MusicBrainz integration to read the release group's canonical 'primary-type' field instead of the legacy 'type' field when deriving info.albumtype.

Noticed that albumtype was missing from the metadata when I did some imports in my library.

@snejus snejus requested a review from a team as a code owner January 17, 2026 16:34
@github-actions
Copy link

Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the MusicBrainz integration to use the canonical 'primary-type' field instead of the deprecated 'type' field when determining album types from release groups.

Changes:

  • Updated code to read 'primary-type' instead of 'type' from MusicBrainz release group data
  • Updated test data to reflect the new field name

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
beetsplug/musicbrainz.py Changed field access from 'type' to 'primary-type' in release group data
test/plugins/test_musicbrainz.py Updated test fixture to use 'primary-type' field name

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

sourcery-ai[bot]

This comment was marked as off-topic.

@snejus snejus force-pushed the musicbrainz-fix-release-type branch 2 times, most recently from 4d7ae8a to f008555 Compare January 17, 2026 16:40
@snejus snejus force-pushed the musicbrainz-fix-release-type branch from f008555 to 8b45423 Compare January 17, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants