Skip to content

[bug] Untagged audiobooks get another book's metadata from a partial title match #3161

Closed

Description

@Rhainland

What happened

Audiobook enrichment gives an untagged book the metadata of a different, real book when one or two words of the folder title match. On a synthetic library, two of the three untagged books were matched to unrelated titles: their author, narrators, cover, summary, year and runtime were replaced, and the item no longer shows as unmatched, so it stops looking like something an admin needs to fix.

Folder title (no tags) Accepted match
Raw Stream "Raw" by Misty Vixen (Audnexus B0B4F5RVXL)
Unknown Author Book "The Book of Unknown Americans" by Cristina Henríquez (Apple Books 1417703839)

Two parts of the admission rules allow it:

  • TitleScore scores a one-word prefix of a two-word title at 0.667 ("Raw Stream" vs "Raw", and also "Dune Messiah" vs "Dune"), above the 0.5 threshold (minTitleScore in internal/metadata/match_confidence.go).
  • AuthorsAgree in internal/metadata/author_match.go treats a missing item author as agreement, so nothing contradicts the title-only match. That is a documented trade-off ("Absence is not disagreement"), which is why this is filed instead of changed: tightening it would reject good matches for untagged books, and the threshold is shared with movie and series matching.

When the right book is among the candidates it wins on score, so the failure shows up when the actual book isn't in the provider's results: self-published, regional, or synthetic titles.

Steps to reproduce

Local build of e6df1d8ed (also on 62b1a6e82), Audiobook Metadata plugin 0.1.6 with its default sources (Audnexus, Apple Books, AudiobookCovers).

  1. Create an audiobook library with two folders containing one untagged audio file each: Evan Pryce/Raw Stream/Raw Stream.aac and Unknown_Author_Book_[48213]/track01.mp3.
  2. Scan and wait for the audiobook enrichment sweep.
  3. Open each item.

Observed: both items carry the other book's author, cover and summary (table above). Reproduced on two fresh databases.

Expected behavior

An untagged book whose title matches a candidate only partly stays unmatched and keeps its filename-derived title, so an admin can match it by hand. A full title match (or a match on an ID the file carries) can still be accepted automatically.

Silo version / commit

e6df1d8eddce823a7bfd4ac2c513e9e83d835277 and 62b1a6e82408eb4be3409255583bf8b0a192a69f.

Deployment

Local dev build

Area

Libraries, scanning, and metadata

Clients affected

Other/not client-specific (every client shows the wrong metadata).

Relevant logs

level=INFO msg="audiobook enrichment: enriched" component=audiobooks content_id=149401855284253118 title="Raw Stream" poster=true overview=true people=2
level=INFO msg="audiobook enrichment: enriched" component=audiobooks content_id=149401855368335806 title="Unknown Author Book" poster=true overview=true people=1

Technical notes

AI harness

Claude Code (T3 Code)

AI tool(s)

Claude Code, GitHub CLI, Playwright, Docker, ffmpeg

AI model(s)

claude-opus-5-5

AI involvement

Fully AI-generated, human verified. Found during AI-run validation of #1253 at the maintainer's direction; reproduced on a local build with synthetic media and traced in source.

Independent or adversarial review

None beyond the two reproductions.

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

Activity

  1. added
    bug
    impact: usability
    priority: P2
    on Oct 27, 2026
  2. added a commit that references this issue on Nov 14, 2026
    ee84398
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