From 9015c54201be605541b6cbda1d47ccbbac647dec Mon Sep 17 00:00:00 2001 From: Jurangren Date: Sat, 23 Aug 2025 02:34:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20VikaACG=20HTML=20?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E4=B8=AD=E7=9A=84=E8=BD=AC=E4=B9=89=E5=8F=8C?= =?UTF-8?q?=E5=BC=95=E5=8F=B7=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 在处理VikaACG的HTML响应时,增加对转义双引号的正确处理。 * 确保正则表达式能够准确匹配内容,避免因转义字符导致的解析错误。 * 移除调试用的控制台日志输出。 --- src/platforms/gal/VikaACG.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/platforms/gal/VikaACG.ts b/src/platforms/gal/VikaACG.ts index 4e9b2b8..b155b7c 100644 --- a/src/platforms/gal/VikaACG.ts +++ b/src/platforms/gal/VikaACG.ts @@ -49,13 +49,7 @@ async function searchVikaACG(game: string): Promise { // .json() will parse the JSON and unescape the string content. const html: string = await response.text(); - const matches = html.replaceAll('\\/', '/').replaceAll('\\\\', '\\').matchAll(REGEX); - - console.log(JSON.stringify({ - message: "VikaACG API HTML Response", - html: html.replaceAll('\\/', '/').replaceAll('\\\\', '\\'), - level: "info", - })); + const matches = html.replaceAll('\\/', '/').replaceAll('\\\\', '\\').replaceAll('\\"', '"').matchAll(REGEX); const items: SearchResultItem[] = []; for (const match of matches) {