Skip to content

lastgenre: fix auto mode not handling singleton imports - #7192

Closed
system-on-chip wants to merge 5 commits into
beetbox:masterfrom
system-on-chip:master
Closed

system-on-chip wants to merge 5 commits into
beetbox:masterfrom
system-on-chip:master

Conversation

@system-on-chip

@system-on-chip system-on-chip commented Nov 18, 2026 •

Copy link
Copy Markdown

Description

Fixes #7190 . Lastgenre in auto mode previously did not trigger for singleton imports, as described in referenced issue. This was a relatively simple change, also added a test for this behavior.

To Do

  • Changelog.
  • Tests.

AI disclosure: GitHub Copilot was used to help author the code commits in this PR.

@system-on-chip
system-on-chip requested review from a team and JOJ0 as code owners November 18, 2026 05:12
Copilot AI balanced review requested due to automatic review settings November 18, 2026 05:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions github-actions Bot added the lastgenre lastgenre plugin label Nov 18, 2026
@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.85%. Comparing base (d3631b2) to head (caa10cb).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
beetsplug/lastgenre/__init__.py 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7192      +/-   ##
==========================================
- Coverage   81.03%   80.85%   -0.19%     
==========================================
  Files         150      150              
  Lines       21232    21236       +4     
  Branches     3241     3242       +1     
==========================================
- Hits        17205    17170      -35     
- Misses       3212     3250      +38     
- Partials      815      816       +1     
Files with missing lines Coverage Δ
beetsplug/lastgenre/__init__.py 91.20% <85.71%> (-0.22%) ⬇️

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

Comment thread beetsplug/lastgenre/__init__.py Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Singleton genres are updated after file moves and tag writes, leaving file tags and $genre-based paths with old values even when tag writing is enabled.

1 open issue

Review effort: Balanced

Comment thread beetsplug/lastgenre/__init__.py Resolved
@JOJ0 JOJ0 closed this Nov 22, 2026
@JOJ0

JOJ0 commented Nov 22, 2026

Copy link
Copy Markdown
Member

hi @system-on-chip I'm closing since the issue could not be reproduced by the original issue submitter. I couldn't reproduce as well. Could you reproduce it actually?

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.

lastgenre auto mode ignores singletons

3 participants