Skip to content

Commit

Permalink
fix: Fixed chapter content for Tsundoku (LNReader#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias authored Aug 7, 2024
1 parent 0e830f4 commit 00d5bb1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/plugins/portuguese/tsundoku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 00d5bb1

Please sign in to comment.