From 00d5bb1f872a9a205b8dad8f0fbb0ed149b775b1 Mon Sep 17 00:00:00 2001 From: Edgard Lorraine Messias Date: Wed, 7 Aug 2024 11:21:06 -0300 Subject: [PATCH] fix: Fixed chapter content for Tsundoku (#1121) --- src/plugins/portuguese/tsundoku.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/plugins/portuguese/tsundoku.ts b/src/plugins/portuguese/tsundoku.ts index dddd889..3710591 100644 --- a/src/plugins/portuguese/tsundoku.ts +++ b/src/plugins/portuguese/tsundoku.ts @@ -8,7 +8,7 @@ import { Filters, FilterTypes } from '@libs/filterInputs'; class TsundokuPlugin implements Plugin.PluginBase { id = 'tsundoku'; name = 'Tsundoku Traduções'; - version = '1.0.0'; + version = '1.0.1'; icon = 'src/pt-br/tsundoku/icon.png'; site = 'https://tsundoku.com.br'; @@ -203,12 +203,8 @@ class TsundokuPlugin implements Plugin.PluginBase { const chapterText = $readerarea.html() || ''; const parts = chapterText.split(/
/); - if ( - parts.length > 1 && - parts[parts.length - 1].includes( - 'Agradecemos a todos que leram diretamente aqui', - ) - ) { + const lastPart = parts[parts.length - 1]; + if (parts.length > 1 && lastPart.includes('https://discord')) { parts.pop(); }