Skip to content

[bug] Ebooks and manga with no author get another book's metadata from a partial title match #4154

Closed

Description

@Quick104

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:

  1. Call metadata.AdmitSearchMatch with WantTitle: "Raw Stream", one result named "Raw" that carries a provider ID, and NoAuthor unset. That is what internal/ebooks/enrichment.go and internal/manga/enrichment.go pass.
  2. The status is accepted.
  3. 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

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

  1. added
    bug
    on Nov 14, 2026
  2. added
    impact: usability
    priority: P2
    on Nov 14, 2026
  3. added a commit that references this issue on Nov 15, 2026
    31c9c4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimpact: usabilitypriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions