Skip to content

Commit

Permalink
Merge branch 'manga-download:master' into comicInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
apiweb authored Aug 5, 2023
2 parents f42cfe9 + 8a486f6 commit 6b04750
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/web/mjs/connectors/Alphapolis.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default class Alphapolis extends Connector {
async _getMangas() {
let mangaList = [];
const request = new Request(new URL('/manga/official/search', this.url), this.requestOptions);
const data = await this.fetchDOM(request, 'span:last-child > a');
const pageCount = parseInt(data[0].href.match(/(\d)+$/)[1]);
const data = await this.fetchDOM(request, 'div.paginator.section span a[rel="last"]');
const pageCount = parseInt(data[0].href.match(/(\d+)$/)[1]);
for(let page = 1; page <= pageCount; page++) {
let mangas = await this._getMangasFromPage(page);
mangaList.push(...mangas);
Expand Down
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');
});
}
}
2 changes: 1 addition & 1 deletion src/web/mjs/connectors/Wnacg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class Wnacg extends Connector {
super.id = 'wnacg';
super.label = 'wnacg';
this.tags = [ 'hentai', 'porn', 'japanese' ];
this.url = 'https://www.wnacg.org';
this.url = 'https://www.wnacg.com';
}

async _getMangaFromURI(uri) {
Expand Down

0 comments on commit 6b04750

Please sign in to comment.