Skip to content

lastgenre: improve original fallback - #6890

Draft
JOJ0 wants to merge 1 commit into
lastgenre_refactor_get_genrefrom
lastgenre_improve_original_fallback
Draft

lastgenre: improve original fallback#6890
JOJ0 wants to merge 1 commit into
lastgenre_refactor_get_genrefrom
lastgenre_improve_original_fallback

Conversation

@JOJ0

@JOJ0 JOJ0 commented Jul 30, 2026

Copy link
Copy Markdown
Member

Description

To Do

  • Documentation.
  • Changelog.
  • Tests.

@github-actions github-actions Bot added the lastgenre lastgenre plugin label Jul 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.

@JOJ0
JOJ0 force-pushed the lastgenre_improve_original_fallback branch from dfef785 to a5f7d91 Compare July 30, 2026 05:53
@JOJ0
JOJ0 changed the base branch from master to lastgenre_refactor_get_genre July 30, 2026 05:54
@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.61%. Comparing base (b4a7caf) to head (1906d93).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                       Coverage Diff                        @@
##           lastgenre_refactor_get_genre    #6890      +/-   ##
================================================================
- Coverage                         75.61%   75.61%   -0.01%     
================================================================
  Files                               163      163              
  Lines                             21324    21324              
  Branches                           3362     3361       -1     
================================================================
- Hits                              16125    16124       -1     
- Misses                             4409     4410       +1     
  Partials                            790      790              
Files with missing lines Coverage Δ
beetsplug/lastgenre/__init__.py 81.59% <100.00%> (+0.34%) ⬆️

... and 1 file 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.

@JOJ0
JOJ0 force-pushed the lastgenre_improve_original_fallback branch from a5f7d91 to c53cebb Compare July 30, 2026 06:04
The discrepancy:

- Normalization might help to keep more whitelisted genres!
- But running through try_resolve_stage would be less code
- The difference being that the latter reduces existing genres to the
  configured count which is not really fitting with a "last resort
  fallback to original genres"

The here suggested solution:

- We don't run through try_resolve_stage instantly because we want to
  make sure the "count" setting doesnt kick out anything but we apply
  aliases before whitelist check.
@JOJ0
JOJ0 force-pushed the lastgenre_improve_original_fallback branch from c53cebb to 1906d93 Compare July 30, 2026 06:05
@JOJ0 JOJ0 mentioned this pull request Jul 30, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lastgenre lastgenre plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant