From f745d5b799c5a9882fbeb7126e43e91c0b019293 Mon Sep 17 00:00:00 2001 From: gdjdkid <67935269+gdjdkid@users.noreply.github.com> Date: Sat, 21 Mar 2026 12:01:49 +0800 Subject: [PATCH] Add a few lines of debugging --- lib/fetcher.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/fetcher.js b/lib/fetcher.js index 9024948..dd31e8d 100644 --- a/lib/fetcher.js +++ b/lib/fetcher.js @@ -172,6 +172,13 @@ function searchJavdb(id) { { shell: '/bin/bash', timeout: 15000, maxBuffer: 1024 * 1024 * 10 } ).toString(); + // 加这几行调试 + console.error('搜索HTML长度:', searchHtml.length); + const allItems = searchHtml.match(/class="box"/g); + console.error('找到box元素数量:', allItems?.length || 0); + const allStrong = searchHtml.match(/[^<]+<\/strong>/g); + console.error('找到strong元素:', allStrong?.slice(0,5)); + const $ = cheerio.load(searchHtml); let detailPath = null;