From 94393851c807e0adaca443fc5dc7995973d30579 Mon Sep 17 00:00:00 2001 From: whidix Date: Sun, 15 Mar 2026 22:44:45 +0100 Subject: [PATCH] feat: support French epithets in character extraction logic --- scripts/scrape-onepiece.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/scrape-onepiece.ts b/scripts/scrape-onepiece.ts index 7b1e4b6..48058f3 100644 --- a/scripts/scrape-onepiece.ts +++ b/scripts/scrape-onepiece.ts @@ -635,7 +635,9 @@ async function extractAffiliations($: cheerio.CheerioAPI, lang: string): Promise * Handles both quoted and unquoted epithets, keeping only the main/latest readable values. */ function extractEpithets($: cheerio.CheerioAPI): string[] { - const div = $('[data-source="epithet"] .pi-data-value'); + const div = $( + '[data-source="epithet"] .pi-data-value, [data-source="épithète"] .pi-data-value' + ).first(); if (div.length === 0) return []; const cleanedDiv = div.clone();