From e8530fa0b70ca23d03ad3448b0a59fcd20ac95f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Sz=C3=BCcs?= <127139797+balazs-szucs@users.noreply.github.com> Date: Wed, 11 Feb 2026 18:22:49 +0100 Subject: [PATCH] fix(comicvine): add fallback to issue detail endpoint for missing creator credits (#2694) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Balázs Szücs --- .../service/metadata/parser/ComicvineBookParser.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/booklore-api/src/main/java/org/booklore/service/metadata/parser/ComicvineBookParser.java b/booklore-api/src/main/java/org/booklore/service/metadata/parser/ComicvineBookParser.java index c276a79c3..627f6af7c 100644 --- a/booklore-api/src/main/java/org/booklore/service/metadata/parser/ComicvineBookParser.java +++ b/booklore-api/src/main/java/org/booklore/service/metadata/parser/ComicvineBookParser.java @@ -559,6 +559,17 @@ public class ComicvineBookParser implements BookParser, DetailedMetadataProvider return buildVolumeMetadata(comic); } + // For issue search/list responses ComicVine often omits creator credits (including writers). + // If we don't have any author information here, fall back to the issue detail endpoint + // to obtain full credits before building the metadata object. + if ("issue".equalsIgnoreCase(comic.getResourceType()) + && (comic.getPersonCredits() == null || comic.getPersonCredits().isEmpty())) { + BookMetadata detailed = fetchIssueDetails(comic.getId(), volumeContext); + if (detailed != null && detailed.getAuthors() != null && !detailed.getAuthors().isEmpty()) { + return detailed; + } + } + String publisher = null; Integer seriesTotal = null; if (volumeContext != null) {