fix: mbpseudo issues when applying pseudorelease#6512
Open
MartinCa wants to merge 8 commits intobeetbox:masterfrom
Open
fix: mbpseudo issues when applying pseudorelease#6512MartinCa wants to merge 8 commits intobeetbox:masterfrom
MartinCa wants to merge 8 commits intobeetbox:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fix mbpseudo crash when user pick pseudo-release during import. It make PseudoAlbumInfo.raw_data work with new Info.raw_data behavior, and it stop bad dict data from leaking into item/album flex fields.
Changes:
- Override
PseudoAlbumInfo.raw_datato build plainAlbumInfofor raw export, so noTypeErrorfromself.__class__(**self.copy()). - Fix
_adjust_final_album_matchto write new mapping tomatch.mapping(not intoalbum_infodict data). - Add regression tests and changelog entry for both crash cases.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| beetsplug/mbpseudo.py | Fix raw_data construction for PseudoAlbumInfo and fix mapping update target. |
| test/plugins/test_mbpseudo.py | Add regression tests for raw_data and mapping leak to prevent sqlite bind crash. |
| docs/changelog.rst | Document both fixed crashes for users. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6512 +/- ##
=========================================
Coverage ? 71.16%
=========================================
Files ? 150
Lines ? 19160
Branches ? 3085
=========================================
Hits ? 13636
Misses ? 4864
Partials ? 660
🚀 New features to boost your workflow:
|
snejus
requested changes
Apr 14, 2026
Member
snejus
left a comment
There was a problem hiding this comment.
Looks good - just simplify the changelog note to a higher-level description.
snejus
approved these changes
Apr 14, 2026
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I have not created an issue for this but I tried to use mbpseudo to apply this pseudorelease: https://musicbrainz.org/release/6c100fef-6abf-41c4-bd21-6f9becaaab6c
When doing that I encountered two errors as seen below, this PR should fix those issues. The second issue was only apparent once the first issue was fixed.
Documentation.