[BUG] Book title comes from a fallback Goodreads ebook edition and refresh reverts any change to it

Aperta
#352 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, docker
Ambito
backend, databases

Direzione di ricerca

Start by tracing the RefreshBook flow and how edition titles are used for the book title and release search; the report gives no source files or tests to begin from. Compare the Hardcover work title with the Goodreads fallback edition title, including the refresh and manual title update steps. Done means the work title is used and a manual title survives refresh; the report also raises fallback edition selection and author refresh deleting books, which may be separate issues.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Describe the bug
When Hardcover has no ebook edition for a book, Chaptarr falls back to a Goodreads ebook edition. It then uses that edition's title as the book's title, even when the Hardcover and Goodreads work titles are correct. There's no way to override the title that survives a refresh.

Two examples from Malorie Blackman's Noughts and Crosses series:

Book Hardcover / Goodreads work title Edition Chaptarr picked Title Chaptarr shows
3 Checkmate (hc:117834, gr work 1179542) gr:64666118-ebook (Pearson Education, 88 pages, ISBN 9781292305844) Level 4: Checkmate ePub with Integrated Audio
4 Double Cross (hc:490760) gr:17426194-ebook (RHCP Digital, 448 pages) Double Cross: Book 4

For 3 the fallback edition is a graded-reader adaptation, not the novel. Chaptarr searches indexers with its title, so searches find nothing:

Searching indexers for [Malorie Blackman - Level 4: Checkmate ePub with Integrated Audio]. 3 active indexers

To Reproduce

  1. Add the author Malorie Blackman.
  2. Open Noughts and Crosses 3. The title is "Level 4: Checkmate ePub with Integrated Audio", with a single edition, gr:64666118-ebook.
  3. Change the edition title through the API (PUT /api/v1/book/{id} with editions[].title changed). The new title shows in the UI.
  4. Run RefreshBook for that book. The title reverts.

Also tried:

  • Changing only the top-level title in PUT /api/v1/book/{id} is accepted with a 202 but has no effect. The Books.Title column already holds "Checkmate", but the UI and search use the monitored edition's title.
  • Pinning the edition (manualAdd: true, anyEditionOk: false, the same thing the edition picker does) doesn't stop a refresh from replacing the title.

Expected behavior

  • The book title comes from the work title (Hardcover "Checkmate"), not from whichever fallback edition was matched.
  • Graded readers and abridged adaptations aren't chosen as the fallback when a full edition exists.
  • Some way to set a book's title by hand that survives a refresh.

Screenshots
N/A

System Information:

  • OS: Ubuntu 26.04.1 LTS
  • Chaptarr Version: 0.9.965.0 (develop)
  • Installation Method: Docker (chaptarr/chaptarr:latest)
  • Browser: N/A (reproduced through the API)

Docker Information (if applicable):

  • Docker version: 29.9.0
  • Docker Compose version: 5.6.0
  • Container logs: see Logs below

Additional context
These books had the correct titles before. An author refresh got back only 1 book from metadata and deleted every other book by the author, including [1516][Checkmate] and [1517][Double Cross (Noughts & Crosses)]. They were recreated about 20 seconds later, this time with the fallback Goodreads editions and their titles. This may be a separate bug, but it's how these books ended up with the bad titles.

Logs

2026-11-08 10:45:11.8|Info|RefreshAuthorService|GetRemoteChildren: Returning 1 books (from 236 total, 236 de-duped, 1 profile-filtered, 0 excluded, retained editions applied)
2026-11-08 10:45:11.8|Warn|RefreshBookService|Book [1515][Knife Edge] not found in metadata and is being deleted
2026-11-08 10:45:11.8|Warn|RefreshBookService|Book [1516][Checkmate] not found in metadata and is being deleted
2026-11-08 10:45:11.8|Warn|RefreshBookService|Book [1517][Double Cross (Noughts & Crosses)] not found in metadata and is being deleted
... (every other book by the author is deleted the same way)
2026-11-08 10:45:34.5|Info|RefreshAuthorService|MISSING_BOOK_CREATED: 'Checkmate' - Original narrator 'NULL' -> NULL (preventing metadata pollution)
2026-11-08 10:47:27.0|Info|ReleaseSearchService|Searching indexers for [Malorie Blackman - Level 4: Checkmate ePub with Integrated Audio]. 3 active indexers
Lingua principale
C#
Stelle
664
Fork
48
Merge medio
5h 24m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Chaptarr/chaptarr

Tutte le issue di Chaptarr/chaptarr

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.