From 58e70bee681e4f4a8bd3b6cd8a1a58f4416844d1 Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Mon, 7 Aug 2023 07:59:18 +0000 Subject: [PATCH] FIX MangaSY : need referrer for pictures (#6112) Fixes https://github.com/manga-download/hakuneko/issues/6108 --- src/web/mjs/connectors/MangaSY.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/mjs/connectors/MangaSY.mjs b/src/web/mjs/connectors/MangaSY.mjs index f28ef12fe5..4f90518f5f 100644 --- a/src/web/mjs/connectors/MangaSY.mjs +++ b/src/web/mjs/connectors/MangaSY.mjs @@ -23,6 +23,7 @@ export default class MangaSY extends WordPressMadara { resolve(JSON.parse(imgdata)); }); `; - return await Engine.Request.fetchUI(request, script); + const data = await Engine.Request.fetchUI(request, script); + return data.map(picture => this.createConnectorURI({url : picture, referer : url})); } }