Revert "Merge pull request #130 from Schnitzel5/feature/novel-download"

This reverts commit 940ef60648, reversing
changes made to 655e8dd385.
This commit is contained in:
kodjomoustapha
2025-01-08 10:57:07 +01:00
parent 87c0150e97
commit a4be0f98aa
4 changed files with 47 additions and 205 deletions

View File

@@ -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() ||
"";