Skip to content

MusicBrainz: look up associated genres for tags - #7229

Open
mrpapersonic wants to merge 7 commits into
beetbox:masterfrom
mrpapersonic:musicbrainz-genre-alias
Open

mrpapersonic wants to merge 7 commits into
beetbox:masterfrom
mrpapersonic:musicbrainz-genre-alias

Conversation

@mrpapersonic

@mrpapersonic mrpapersonic commented Nov 30, 2026 •

Copy link
Copy Markdown

Description

Fixes #7228.

This uses a similar "solution" as the Taggregator userscript and uses regex to parse HTML from the MusicBrainz web server. It is not very good, and ideally would be replaced with something less flaky once it's available.

To Do

  • Documentation. (If you've added a new command-line flag, for example, find the appropriate page under docs/ to describe it.)
  • Changelog. (Add an entry to docs/changelog.rst to the bottom of one of the lists near the top of the document.)
  • Tests. (Very much encouraged but not strictly required.)

@github-actions github-actions Bot added the musicbrainz musicbrainz plugin label Nov 30, 2026
@github-actions

Copy link
Copy Markdown

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.

@mrpapersonic
mrpapersonic force-pushed the musicbrainz-genre-alias branch from 498eb88 to ab33bac Compare November 30, 2026 09:48
note that in practice this should never happen anyway, and only
happens as a result of the test suite.
@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.11111% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.93%. Comparing base (61ae14e) to head (e3d23a3).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
beetsplug/musicbrainz.py 86.11% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7229      +/-   ##
==========================================
- Coverage   80.93%   80.93%   -0.01%     
==========================================
  Files         150      150              
  Lines       21257    21285      +28     
  Branches     3246     3252       +6     
==========================================
+ Hits        17205    17227      +22     
- Misses       3244     3248       +4     
- Partials      808      810       +2     
Files with missing lines Coverage Δ
beetsplug/musicbrainz.py 94.05% <86.11%> (-1.03%) ⬇️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mrpapersonic
mrpapersonic force-pushed the musicbrainz-genre-alias branch from b8d8021 to 3f5ba1d Compare November 30, 2026 23:36
@mrpapersonic
mrpapersonic force-pushed the musicbrainz-genre-alias branch from 3f5ba1d to cab88f3 Compare November 30, 2026 23:38
@mrpapersonic
mrpapersonic marked this pull request as ready for review November 30, 2026 23:50
@mrpapersonic
mrpapersonic requested review from a team and snejus as code owners November 30, 2026 23:50
@mrpapersonic
mrpapersonic force-pushed the musicbrainz-genre-alias branch 3 times, most recently from fef6918 to f99fdab Compare December 1, 2026 03:10
@mrpapersonic
mrpapersonic force-pushed the musicbrainz-genre-alias branch from f99fdab to e3d23a3 Compare December 1, 2026 03:20

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

musicbrainz musicbrainz plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MusicBrainz: check for genre aliases in tag list

1 participant