Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,56 @@

All notable changes to DoplarrChaptarr Rust are documented here.

## 4.6.1-chaptarr.1 - Unreleased

Fixes the new-author request failure observed live on 2026-07-15. The old bot
accepted a Farseer collection row while Robin Hobb's catalog was still
refreshing, monitored and searched that bundle too early, and still reported
success when that `BookSearch` completed with zero results. It had not selected
a usable ebook edition, and the import tail later removed the partial monitor
state.

### Fixed

- New-author requests now wait for the catalog import to settle before any
monitoring. The gate requires successful command polling, no author-relevant
catalog command in flight, and stable book and target-edition state; an API
error or deadline fails closed. The same wait runs after any bot-issued
`RefreshAuthor`.
- Requests now select exactly one edition of the requested format (preferring
English and the projected edition) via the full-book `PUT /book/{id}` with
`anyEditionOk: false` and `manualAdd`, mirroring the Chaptarr UI. Edition truth
is read exclusively from `GET /edition?bookId=...`; its authoritative
`format` distinguishes Ebook, Physical, and Audiobook so a physical edition
cannot be mistaken for an audiobook.
- This remains a single-work request flow. Results with clear multi-book title
signals - such as a title ending in `bundle` or `trilogy`, an `omnibus`, a box
set, a `complete ... series`, or an explicit numbered book collection/set -
are rejected with an instruction to request each individual title. The bot
does not expand one selection into many works.
- Duplicate import pockets (two local rows for one work, logged server-side as
`SERVER-BUG-CANDIDATE`) are disambiguated by which row actually carries
usable requested-format editions, and only that row is monitored.
Already-requested checks now span every matching row so an available or
in-flight twin stops a duplicate request. An exact active `BookSearch` and a
recent valid acknowledgement retained by the same bot process are also
deduplicated.
- The pre-search read-back now verifies the book is monitored AND its explicit
requested-format flag is true, and that exactly one requested-format edition
- the chosen one - is monitored before `BookSearch` is queued. A matching
work with no usable edition fails with an actionable message.
- Retries now distinguish an available, grabbed, actively searched, or
same-process recently acknowledged request from a partial monitor state. A
prior edition/monitor write without that search evidence is repaired through
the same verified sequence instead of being rejected as "already requested."
This deduplication is deliberately bounded: after a bot restart, or after a
search completes with no grab or file, an explicit retry may queue a fresh
search instead of leaving a zero-result request permanently blocked.

This write-path change still requires the exact candidate image to pass the
disposable live mutation checklist before merge or release; fixtures and CI
cannot prove that private Chaptarr writes persist.

## 4.6.0-chaptarr.1 - Unreleased

This is a beta release candidate. Chaptarr's API is private and pre-1.0, and
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["doplarr", "radarr_api", "sonarr_api", "seerr_api"]
resolver = "3"

[workspace.package]
version = "4.6.0-chaptarr.1"
version = "4.6.1-chaptarr.1"
edition = "2024"
license = "GPL-3.0-only"
authors = ["Elisha Lucero <ebriellelucero@gmail.com>"]
Expand Down
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ binary beta; releases remain gated by the disposable Chaptarr checklist below.

Each backend creates a `/request <media>` slash command. Chaptarr adds the same
two public commands as the old fork: `/request book` and `/request audiobook`.
Each interaction requests one work. The bot does not expand a trilogy or series
query into multiple books; select an individual title for each request.

## Screenshots

Expand Down Expand Up @@ -207,6 +209,30 @@ not add an author or book; Chaptarr is mutated only after the requester presses
bounded Open Library fallback, but remain best-effort: a request must still work
when a cover host is unavailable or a title has no usable image.

A request only reports success after Chaptarr confirms it is actionable. For an
author new to Chaptarr, the bot first waits for successful command checks, no
catalog command in flight, and stable book and target-edition state. A polling
error or deadline stops the request before any monitor/search work and tells the
requester to retry later.

The bot rejects results whose titles carry clear multi-book signals - for
example, a title ending in `bundle` or `trilogy`, an `omnibus`, a box set, a
`complete ... series`, or an explicit numbered book collection/set - and asks
for an individual title. It does not reject a legitimate single-work title
merely because it contains a word such as `collection` or `series`. For a
single work, it chooses the best duplicate row, uses the
authoritative edition `format` to keep Ebook, Physical, and Audiobook distinct,
and selects exactly one requested-format edition. It then verifies both the
book monitor and the explicit format monitor plus the chosen edition before
queueing `BookSearch`.

Retries use bounded deduplication. An exact queued/started `BookSearch`, a grab,
an available file, or a recent valid acknowledgement retained by the same bot
process stops an immediate duplicate. A partial edition/monitor state without
that evidence is repaired. After the bot restarts, or after a search completes
with no grab or file, an explicit retry may intentionally queue a fresh search
so a zero-result request is not blocked forever.

`openlibrary_covers` defaults to `true`. When enabled, a search whose Chaptarr
results lack usable covers sends the search text to Open Library's public Search
API. Results are cached and globally rate-limited. Set it to `false` on both
Expand All @@ -226,7 +252,9 @@ sequence are documented in
**[docs/chaptarr/COMPATIBILITY.md](docs/chaptarr/COMPATIBILITY.md)**. Maintainers
should complete the
**[beta release checklist](docs/chaptarr/RELEASE_CHECKLIST.md)** before
publishing against a new Chaptarr version.
merging or publishing any Chaptarr write-path change. The checklist includes an
exact-image disposable live write canary because fixture tests cannot prove
that Chaptarr persisted a private-API mutation.

## Running as a Service

Expand Down
Loading