Skip to content

Fix Chaptarr ebook searches returning no results - #2

Merged
elbrielle merged 1 commit into
mainfrom
codex/fix-chaptarr-book-search
Jul 15, 2026
Merged

elbrielle merged 1 commit into
mainfrom
codex/fix-chaptarr-book-search

Conversation

@elbrielle

Copy link
Copy Markdown
Owner

What changed

  • Keep valid work-level Chaptarr lookup results even when the returned projection is labeled as the other format.
  • Prefer the requested-format projection when Chaptarr returns duplicate projections for the same work.
  • Continue using only the requested format's local-book bridge and retain strict local-row format checks before status, monitoring, or search mutations.
  • Stamp the requested mediaType onto new-author requests, matching Chaptarr's current UI behavior.
  • Add sanitized result counters and a live-shaped audiobook-projection regression fixture.
  • Clarify the discovery-versus-local-row compatibility contract.

Root cause

Chaptarr 0.9.720.0 currently returns generic book discovery results through its configured/default audiobook projection. The Rust provider treated that projection as proof that the work was not requestable as an ebook and discarded every result. Chaptarr's UI and the older Clojure fork both treat discovery as work-level and apply the requested format later.

User impact

/request book can show valid ebook choices again without weakening the safeguards that prevent an audiobook row from satisfying or mutating an ebook request.

Validation

  • cargo fmt --all -- --check
  • cargo test --workspace --locked (67 passed)
  • cargo clippy --workspace --all-targets --locked -- --deny warnings
  • nix flake check --print-build-logs --keep-going
  • GET-only probes against the running Chaptarr 0.9.720.0 instance
  • Focused review of cross-format safety and log privacy

No Chaptarr catalog request or library mutation was created during diagnosis.

@elbrielle
elbrielle marked this pull request as ready for review July 15, 2026 19:14
@elbrielle
elbrielle merged commit 887989f into main Jul 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant