Repository navigation
Description
What happened
Ebook and manga enrichment can give an item with no author another book's metadata when the titles share a word or two. This is the gap #3161 describes for audiobooks. #4151 closes it for audiobooks only, so ebooks and manga keep it.
Both enrichers call metadata.AdmitSearchMatch without the new NoAuthor flag, so a candidate only needs a title score above 0.5. "Raw" scores 0.67 against "Raw Stream". After GetMetadata, AuthorsAgree returns true when the item's author is empty, so nothing rejects the match.
Steps to reproduce
Not reproduced on a deployment. Proven from source and a focused call:
- Call
metadata.AdmitSearchMatchwithWantTitle: "Raw Stream", one result named "Raw" that carries a provider ID, andNoAuthorunset. That is whatinternal/ebooks/enrichment.goandinternal/manga/enrichment.gopass. - The status is
accepted. metadata.AuthorsAgree("", people)returns true for any credits, so the enricher persists the match.
Expected behavior
An ebook or manga item with no author is matched under the same rule #4151 adds for audiobooks: a candidate is admitted only when its title identifies the book on its own, or when it carries an ID the item already holds.
Silo version / commit
main at 97241d7.
Deployment
Not reproduced on a deployment (source trace and a focused call).
Clients affected
Other/not client-specific. Every client shows the stored metadata.
Relevant logs
No logs available.
Technical notes
- Call sites:
internal/ebooks/enrichment.go(AdmitSearchMatchin the provider loop;AuthorsAgreeafterGetMetadata) andinternal/manga/enrichment.go(the same pair). - The fix is to set
NoAuthorfrom the item's author in both enrichers once fix(audiobooks): keep an untagged book unmatched on a partial title match #4151 merges. Ebooks read an author from the path when tags lack one (ebookAuthorFromPath), so fewer ebooks reach this state than audiobooks do. - Ebooks and manga are beta features. This is a matching fix, not a rework.
- This follows fix(audiobooks): keep an untagged book unmatched on a partial title match #4151 and waits for it to merge.
AI harness
Claude Code (T3 Code)
AI tool(s)
Claude Code, GitHub CLI
AI model(s)
claude-opus-5-5
AI involvement
Fully AI-generated. Found during an AI-run review of #4151 at the maintainer's direction; traced in source and checked with a focused call. Not reproduced on a deployment.
Independent or adversarial review
Three review subagents and a cross-provider review (gpt-6.1-sol) traced the same gap during the review of #4151.
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on a real deployment
- Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above
Source: found in review of #4151
Activity
fix(ebooks, manga): keep a book with no author unmatched on a partial…