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();