fix: Fixed chapter content for Tsundoku (#1121)

This commit is contained in:
Edgard Lorraine Messias
2024-08-07 11:21:06 -03:00
committed by GitHub
parent 0e830f4acf
commit 00d5bb1f87
+3 -7
View File
@@ -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(/<hr ?\/?>/);
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();
}