chore: 调整平台搜索日志输出

* VikaACG 平台:新增处理后 HTML 响应的调试日志,方便排查数据解析问题。
* TWOdfan 平台:移除不再需要的 API HTML 响应调试日志,精简控制台输出。
This commit is contained in:
Jurangren
2025-08-23 01:40:50 +08:00
parent a3b9c3a751
commit 90e047aae8
2 changed files with 6 additions and 6 deletions

View File

@@ -51,6 +51,12 @@ async function searchVikaACG(game: string): Promise<PlatformSearchResult> {
const matches = html.replaceAll('\\/', '/').replaceAll('\\\\', '\\').matchAll(REGEX);
console.log(JSON.stringify({
message: "VikaACG API HTML Response",
html: html.replaceAll('\\/', '/').replaceAll('\\\\', '\\'),
level: "info",
}));
const items: SearchResultItem[] = [];
for (const match of matches) {
if (match.groups?.NAME && match.groups?.URL) {

View File

@@ -22,12 +22,6 @@ async function searchTWOdfan(game: string): Promise<PlatformSearchResult> {
}
const html: string = await response.text();
console.log(JSON.stringify({
message: "2dfan API HTML Response",
html: html,
level: "info",
}));
const matches = html.matchAll(REGEX);