Skip to content

Commit

Permalink
Fix ShinigamiID: domain & break encryption (manga-download#7023)
Browse files Browse the repository at this point in the history
custom WPmangaprotector, cute
Fixes manga-download#6667
  • Loading branch information
MikeZeDev authored and serge-reboul committed Jun 30, 2024
1 parent 5df7f0e commit 7363ffe
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/web/mjs/connectors/ReaperScansID.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,26 @@ export default class ReaperScansID extends WordPressMadara {
super.id = 'reaperscansid';
super.label = 'Shinigami ID';
this.tags = ['webtoon', 'indonesian', 'scanlation'];
this.url = 'https://shinigami.sh';
this.url = 'https://shinigami.cx';
this.queryChapters = 'div.chapter-link > a';
this.queryChaptersTitleBloat ='span.chapter-release-date';
this.queryPages = 'div.page-break source[data-src]';
this.links = {
login: 'https://shinigami.sh/login'
login: 'https://shinigami.cx/login'
};
}

async _getPages(chapter) {
const url = new URL(chapter.id, this.url);
const request = new Request(url, this.requestOptions);
const script = `
new Promise((resolve, reject) => {
const key = post_id + 'hJ1nA7qt0fMxGPfW3WlD5QuRy1HBTOnukhP9JE' + post_id + 'aBTSjD3cSKEJEKMI34mSxRUm98Xu4hXp71YTWJ5lUnP' + post_id;
const imgdata = JSON.parse(CryptoJS.AES.decrypt(chapter_data, key, {
format: CryptoJSAesJson
}).toString(CryptoJS.enc.Utf8));
resolve((imgdata));
});
`;
return await Engine.Request.fetchUI(request, script);
}
}

0 comments on commit 7363ffe

Please sign in to comment.