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 [ {