Skip to content

Commit

Permalink
Fix AzoraWorld/AzoraManga : domain, getpages etc. (#6493)
Browse files Browse the repository at this point in the history
* Fix AzoraWorld/AzoraManga : domain, getpages etc.

* change domain
* fix getpages
* AzoraManga is now a dummy connector telling use to use AzoraWorld (website are the same domain)

* Update AzoraManga.mjs
  • Loading branch information
MikeZeDev authored Dec 20, 2023
1 parent cee4990 commit da5c108
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/web/mjs/connectors/AzoraManga.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import WordPressMadara from './templates/WordPressMadara.mjs';
import AzoraWorld from './AzoraWorld.mjs';

export default class AzoraManga extends WordPressMadara {
export default class AzoraManga extends AzoraWorld {

constructor() {
super();
super.id = 'azoramanga';
super.label = 'أزورا مانج (AZORA MANGA)';
this.tags = [ 'webtoon', 'arabic' ];
this.url = 'https://azoramanga.com';
}
}
}
23 changes: 20 additions & 3 deletions src/web/mjs/connectors/azoraworld.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
import WordPressMadara from './templates/WordPressMadara.mjs';

export default class AzoraWorld extends WordPressMadara {

constructor() {
super();
super.id = 'azoraworld';
super.label = 'AzoraWorld';
super.label = 'AzoraWorld (AzoraManga)';
this.tags = [ 'webtoon', 'arabic', 'manga' ];
this.url = 'https://azoranov.com';
this.url = 'https://azoramoon.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) => {
setTimeout(() => {
var imgdata = JSON.parse(CryptoJS.AES.decrypt(chapter_data, wpmangaprotectornonce, {
format: CryptoJSAesJson
}).toString(CryptoJS.enc.Utf8));
resolve(JSON.parse(imgdata));
},3000);
});
`;
const data = await Engine.Request.fetchUI(request, script);
return data.map(picture => this.createConnectorURI({url : picture, referer : url}));
}

}

0 comments on commit da5c108

Please sign in to comment.