Skip to content

Commit

Permalink
FIX : Siyahmelek : filter dummy picture (#6013)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored and Sheepux committed Jan 2, 2024
1 parent 8122973 commit d8a5180
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/web/mjs/connectors/Siyahmelek.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ export default class Siyahmelek extends WordPressMadara {
this.tags = [ 'manga', 'webtoon', 'turkish' ];
this.url = 'https://siyahmelek.net';
}

async _getPages(chapter) {
return (await super._getPages(chapter)).filter(picture => {
const pic= JSON.parse(atob(new URL(picture).searchParams.get('payload')));
return !pic.url.endsWith('xxxxx/99.jpg');
});
}
}

0 comments on commit d8a5180

Please sign in to comment.