Skip to content

Commit

Permalink
FIX GourmetScans: domain change & tweak script (#6531)
Browse files Browse the repository at this point in the history
* FIX GourmetScans: domain change & tweak script

Fixes #6530

* Update GourmetScans.mjs
  • Loading branch information
MikeZeDev authored Dec 30, 2023
1 parent 2469461 commit 6499a2d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/web/mjs/connectors/GourmetScans.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,28 @@ export default class GourmetScans extends WordPressMadara {
super.id = 'gourmetscans';
super.label = 'Gourmet Scans';
this.tags = [ 'webtoon', 'english' ];
this.url = 'https://gourmetscans.net';
this.url = 'https://gourmetsupremacy.com';
}

async _getPages(chapter) {
const url = new URL(chapter.id, this.url);
const request = new Request(url, this.requestOptions);
const script = `
new Promise((resolve, reject) => {
var imgdata = JSON.parse(CryptoJS.AES.decrypt(chapter_data, wpmangaprotectornonce, {
format: CryptoJSAesJson
}).toString(CryptoJS.enc.Utf8));
resolve(JSON.parse(imgdata));
try {
let rocketscript = new RocketLazyLoadScripts;
rocketscript._loadEverythingNow();
} catch (error) {}
setTimeout(() => {
var imgdata = JSON.parse(CryptoJS.AES.decrypt(chapter_data, wpmangaprotectornonce, {
format: CryptoJSAesJson
}).toString(CryptoJS.enc.Utf8));
resolve(JSON.parse(imgdata));
}, 2500);
});
`;
const data = await Engine.Request.fetchUI(request, script);
return data.map(picture => this.createConnectorURI({url : picture, referer : url}));
}
}
}

0 comments on commit 6499a2d

Please sign in to comment.