Skip to content

musicbrainz: read the deprecated searchlimit option from the right place - #7238

Open
Sabrina04072003 wants to merge 1 commit into
beetbox:masterfrom
Sabrina04072003:musicbrainz-searchlimit
Open

Sabrina04072003 wants to merge 1 commit into
beetbox:masterfrom
Sabrina04072003:musicbrainz-searchlimit

Conversation

@Sabrina04072003

Copy link
Copy Markdown
Contributor

Closes #7231.

The old searchlimit option was read from the wrong place (musicbrainz.match.searchlimit), so it was ignored and no warning was shown.

Now it is read from musicbrainz.searchlimit: the value is used again and the deprecation warning is shown.

I added 2 tests. The first one fails on the old code (5 instead of 20) and passes now. I did not run a real import.

AI use: I used IA to help me and I ran the format, lint and tests locally.

@Sabrina04072003
Sabrina04072003 requested review from a team and snejus as code owners December 1, 2026 08:42
@github-actions github-actions Bot added the musicbrainz musicbrainz plugin label Dec 1, 2026
@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.94%. Comparing base (61ae14e) to head (2ad381f).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7238   +/-   ##
=======================================
  Coverage   80.93%   80.94%           
=======================================
  Files         150      150           
  Lines       21257    21257           
  Branches     3246     3246           
=======================================
+ Hits        17205    17207    +2     
+ Misses       3244     3242    -2     
  Partials      808      808           
Files with missing lines Coverage Δ
beetsplug/musicbrainz.py 95.38% <100.00%> (+0.30%) ⬆️

... 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.

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: deprecated searchlimit option is silently ignored since 2.4.0

1 participant