Metadata rescan: answer with the saved book, so callers don't have to read it back
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
Direzione di ricerca
Inizia da LibraryMetadataRescanWorkflow.cs, dove il libro salvato è disponibile come updatedAudiobook, e trova la risposta di successo di POST /api/v1/library/{id}/rescan-metadata. Confronta la struttura della risposta con quella di GET /library/{id} e aggiungi il libro salvato alla risposta di successo. Il lavoro è completato quando la risposta include un campo audiobook con la stessa struttura e i campi di risposta esistenti restano disponibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
POST /api/v1/library/{id}/rescan-metadata answers a successful rescan with only
{ "message": "Metadata rescanned successfully", "audiobookId": 3, "source": "Audible", "asin": "B0F48KS3BX", "region": "fr" }
although the workflow holds the saved book at that point (updatedAudiobook in LibraryMetadataRescanWorkflow.cs). To show the book as it now is, a caller has to ask for it again with GET /library/{id}.
Why it matters
- One more request per rescan, for data the server already had.
- A second point of failure: if that read fails (a timeout, a network blip) after a successful rescan, the caller can't tell the user what the book became, and can wrongly report the rescan itself as failed. Repair (#1054) hit exactly this; it now reports such a book as repaired, read back or not, but still needs the extra request.
Suggested change
Add the saved book to the success answer, in the same shape as GET /library/{id} returns it:
{ "message": "Metadata rescanned successfully", "audiobookId": 3, "source": "Audible", "asin": "B0F48KS3BX", "region": "fr", "audiobook": { … } }
Additive: existing callers keep working. #1054 already uses audiobook when it is there and falls back to the read otherwise, so it drops the extra request as soon as this lands. Happy to send a small PR for it. Related: #1125 (book metadata epic, rescan rules).
- Lingua principale
- C#
- Stelle
- 901
- Fork
- 70
- Merge medio
- 16h 27m
- PR unite (30g)
- 60
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Listenarrs/Listenarr
-
Search button on a book does not retry without the author when the full query finds nothingForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Listenarrs/Listenarr#1173 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Listenarrs/Listenarr#1133 ·
I maintainer di solito rispondono entro 1 giorno
-
Add New's search splits a title that contains "Series:", "Author:"… as if they were search keywordsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Listenarrs/Listenarr#1127 ·
I maintainer di solito rispondono entro 1 giorno
-
p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
Listenarrs/Listenarr#971 ·
I maintainer di solito rispondono entro 1 giorno
-
p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Listenarrs/Listenarr#959 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Listenarrs/Listenarr
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
conductor-oss/csharp-sdk#183 ·
-
CreateNewLangProj throws when the default analysis writing system's ICU locale differs from its tagAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
unoplatform/uno#26555 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
CactuseSecurity/firewall-orchestrator#5739 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno