mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
updated function params
This commit is contained in:
@@ -14,7 +14,7 @@ const mangayomiSources = [
|
|||||||
"pkgPath": "novel/src/all/annasarchive.js",
|
"pkgPath": "novel/src/all/annasarchive.js",
|
||||||
"isNsfw": false,
|
"isNsfw": false,
|
||||||
"hasCloudflare": true,
|
"hasCloudflare": true,
|
||||||
"notes": "EPUBs need to be downloaded to view chapters! Downloads from Libgen might be slow!",
|
"notes": "EPUBs are automatically downloaded to view chapters! Downloads from Libgen might be slow!",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -151,12 +151,12 @@ class DefaultExtension extends MProvider {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
async getHtmlContent(chapterName, url) {
|
async getHtmlContent(name, url) {
|
||||||
const urls = url.split(";;;");
|
const urls = url.split(";;;");
|
||||||
const client = await new Client();
|
const client = await new Client();
|
||||||
const bookLink = await this._getMirrorLink(client, urls[0]);
|
const bookLink = await this._getMirrorLink(client, urls[0]);
|
||||||
|
|
||||||
return await parseEpubChapter(chapterName, bookLink, {
|
return await parseEpubChapter(name, bookLink, {
|
||||||
Connection: "Keep-Alive",
|
Connection: "Keep-Alive",
|
||||||
...this.headers,
|
...this.headers,
|
||||||
}, urls[1]);
|
}, urls[1]);
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ class DefaultExtension extends MProvider {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async getHtmlContent(url) {
|
async getHtmlContent(name, url) {
|
||||||
const client = await new Client();
|
const client = await new Client();
|
||||||
const res = await client.get(url, {
|
const res = await client.get(url, {
|
||||||
Priority: "u=0, i",
|
Priority: "u=0, i",
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class DefaultExtension extends MProvider {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async getHtmlContent(url) {
|
async getHtmlContent(name, url) {
|
||||||
const client = await new Client();
|
const client = await new Client();
|
||||||
const res = await client.get(url);
|
const res = await client.get(url);
|
||||||
return await this.cleanHtmlContent(res.body);
|
return await this.cleanHtmlContent(res.body);
|
||||||
|
|||||||
Reference in New Issue
Block a user