From c3e36b68dbf0aa0c73acb7d402cbd581325fd31f Mon Sep 17 00:00:00 2001 From: Sulthan Zaki Date: Mon, 10 Aug 2026 01:20:35 +0700 Subject: [PATCH] docs(latest): document cover extraction fallback --- backend/internal/latest/sites.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/internal/latest/sites.go b/backend/internal/latest/sites.go index a79d0af..489109c 100644 --- a/backend/internal/latest/sites.go +++ b/backend/internal/latest/sites.go @@ -215,6 +215,9 @@ func comixCoverURL(seriesURL, body string) string { return publishedCoverURL(detail.Poster.Medium) } +// coverFrom reports false for unknown sites, challenge bodies, and pages with +// no usable cover. Metadata extraction keeps scanning after an empty match so +// a later published cover is not hidden by an empty tag. func coverFrom(site, seriesURL, body string) (string, bool) { var cover string switch site {