diff --git a/lib/fetcher.js b/lib/fetcher.js index e0a7348..79120d9 100644 --- a/lib/fetcher.js +++ b/lib/fetcher.js @@ -195,6 +195,7 @@ function searchJavdb(id) { if (!detailPath) detailPath = $('.movie-list .item a.box').first().attr('href'); if (!detailPath) return null; + console.error('找到detailPath:', detailPath); // 加这行 const detailHtml = execSync( `curl -sL "https://javdb.com${detailPath}" \ @@ -207,6 +208,7 @@ function searchJavdb(id) { try { unlinkSync(tmpFile); } catch {} + console.error('详情页HTML长度:', detailHtml.length); // 加这行 return parseJavdb(detailHtml, id); } catch { return null;