From cc2c6c49d984154b42160faf7251ebb174da8eb4 Mon Sep 17 00:00:00 2001 From: Moustapha Kodjo Amadou <107993382+kodjodevf@users.noreply.github.com> Date: Mon, 10 Mar 2025 15:53:33 +0100 Subject: [PATCH] fix --- javascript/manga/src/en/weebcentral.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/javascript/manga/src/en/weebcentral.js b/javascript/manga/src/en/weebcentral.js index fec48004..29d52def 100644 --- a/javascript/manga/src/en/weebcentral.js +++ b/javascript/manga/src/en/weebcentral.js @@ -7,7 +7,7 @@ const mangayomiSources = [{ "iconUrl": "https://www.google.com/s2/favicons?sz=128&domain=https://weebcentral.com", "typeSource": "single", "itemType": 0, - "version": "0.0.8", + "version": "0.0.9", "pkgPath": "manga/src/en/weebcentral.js" }]; @@ -17,7 +17,7 @@ class DefaultExtension extends MProvider { this.client = new Client(); } getHeaders(url) { - return { "Referer": `${baseUrl}/` }; + return { "Referer": `${this.source.baseUrl}/` }; } async request(slug) { @@ -131,9 +131,10 @@ class DefaultExtension extends MProvider { doc.select("section > img").forEach(page => urls.push(page.attr("src"))) - return urls + return urls.map(x => ({ url: x, headers: { Referer: `${this.source.baseUrl}/`, Accept: "image/avif,image/webp,*/*", Host: `${x.match(/^(?:https?:\/\/)?([^\/:]+)(:\d+)?/)[1]}` } })); } + getFilterList() { return [ {