You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Book requests for one edition are not pinned when ChaptarrNG already monitors that edition #692
An audiobook request for "only this version" (editionPolicy: only) is not pinned in ChaptarrNG when the requested edition is already the edition ChaptarrNG monitors for that book. ChaptarrNG then treats the book as "any edition is fine", and can grab and import a different narration.
What happened
SeerrNG v3.72.36, ChaptarrNG v0.9.1007.
Request for The Fellowship of the Ring, Andy Serkis narration only (preferredEditionId: 32682017, editionPolicy: only).
The book already existed in ChaptarrNG, unmonitored, because its author was in the library.
After SeerrNG saved the book, the Andy Serkis edition (hc:edition:32682017-audiobook) was the only monitored edition, but with anyEditionOk: true and no manualAdd. The book was not pinned.
Per the code below, that only happens when the requested edition was already ChaptarrNG's monitored pick before the save.
A release for the Rob Inglis narration ("...The.Fellowship.of.the.Ring.Rob.Inglis-PoF") was approved and imported. ChaptarrNG moved the monitored edition to the Rob Inglis listing, and the request was marked available.
Cause
ReadarrAPI updates an existing book with PUT /book/{id}, spreading the stored book (...existingBook) and replacing editions with the requested selection (getRequestedEditionUpdate). It never sets anyEditionOk, so the stored true is sent back.
ChaptarrNG maps anyEditionOk from the request (book.AnyEditionOk = resource.AnyEditionOk). Its own pin on save applies only when the monitored edition changes (ShouldPinExplicitEditionSelection → IsExplicitEditionSelectionChange).
So when the requested edition is already the monitored one, nothing changes and nothing pins it.
When the requested edition differs from the current pick, ChaptarrNG pins it, which is why most narrator requests work.
Suggested fix
For a Chaptarr destination, when the request has a specific edition and editionPolicy is only (the default), send anyEditionOk: false in the book update and in the add payload. Alternatively, call POST /book/{id}/editions/wanted with the local edition id, which ChaptarrNG already supports (wantedEditionVariants). Requests with editionPolicy: either should keep anyEditionOk as it is.
Activity
github-actions commentedon Nov 15, 2026
Possible duplicate detected
This issue may be a duplicate of the following (detected via semantic similarity + LLM review):
A maintainer will review this. If this is not a duplicate, no action is needed.
fix(books): pin the requested edition for single-edition Chaptarr req…