mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
Revert "Merge pull request #130 from Schnitzel5/feature/novel-download"
This reverts commit940ef60648, reversing changes made to655e8dd385.
This commit is contained in:
@@ -7,7 +7,7 @@ const mangayomiSources = [{
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/javascript/icon/en.wordrain69.png",
|
||||
"typeSource": "single",
|
||||
"itemType": 2,
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.1",
|
||||
"dateFormat": "",
|
||||
"dateFormatLocale": "",
|
||||
"pkgPath": "novel/src/en/wordrain69.js",
|
||||
@@ -117,15 +117,11 @@ const mangayomiSources = [{
|
||||
chapters,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
async getHtmlContent(url) {
|
||||
const client = await new Client();
|
||||
const res = await client.get(url);
|
||||
return await this.cleanHtmlContent(res.body);
|
||||
}
|
||||
|
||||
async cleanHtmlContent(html) {
|
||||
const doc = new Document(html);
|
||||
const doc = new Document(res.body);
|
||||
const title =
|
||||
doc.selectFirst("#chapter-heading")?.text.trim() ||
|
||||
"";
|
||||
|
||||
Reference in New Issue
Block a user