Add a few lines of debugging

This commit is contained in:
gdjdkid committed 2026-03-21 12:01:49 +08:00
1 parent 279ee3a6c1
commit f745d5b799
1 file changed
+7
+7
View File
@@ -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>[^<]+<\/strong>/g);
console.error('找到strong元素:', allStrong?.slice(0,5));
const $ = cheerio.load(searchHtml);
let detailPath = null;