-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix AzoraWorld/AzoraManga : domain, getpages etc. (#6493)
* 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
Showing
2 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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})); | ||
} | ||
|
||
} |