diff --git a/plugins/french/novelfrance.ts b/plugins/french/novelfrance.ts index 9e14c68c9..fea0fe8ca 100644 --- a/plugins/french/novelfrance.ts +++ b/plugins/french/novelfrance.ts @@ -59,7 +59,7 @@ class NovelFrancePlugin implements Plugin.PluginBase { name = 'NovelFrance'; icon = 'src/fr/novelfrance/icon.png'; site = 'https://novelfrance.fr/'; - version = '1.0.0'; + version = '1.0.1'; private async fetchJson(url: string): Promise { const r = await fetchApi(url); @@ -205,9 +205,14 @@ class NovelFrancePlugin implements Plugin.PluginBase { if (title) parts.push(`

${this.escapeHtml(title)}

`); for (const p of data.paragraphs || []) { - if (title && p.index === 0) continue; const content = (p.content || '').trim(); if (!content) continue; + + // Si le paragraphe d'index 0 est une répétition exacte du titre du chapitre, on l'ignore + if (title && p.index === 0 && content.toLowerCase() === title.trim().toLowerCase()) { + continue; + } + parts.push(`

${this.escapeHtml(content)}

`); }