updated function params

This commit is contained in:
Schnitzel5
2025-05-07 22:04:53 +02:00
parent 4da79c283c
commit 6d3623b14e
3 changed files with 5 additions and 5 deletions

View File

@@ -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]);

View File

@@ -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",

View File

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