Temporary debugging.

This commit is contained in:
gdjdkid committed 2026-03-21 13:51:15 +08:00
1 parent 287cfbb120
commit 66b261811b
1 file changed
+5 -2
+5 -2
View File
@@ -180,11 +180,14 @@ function searchJavdb(id) {
let detailPath = null;
// 比较时统一把连字符和下划线都当成同一个字符处理
$('.movie-list .item a.box').each((_, el) => {
const foundId = $(el).find('.video-title strong').text().trim().toUpperCase();
// 比较时统一把连字符和下划线都当成同一个字符处理
const normalize = s => s.replace(/[-_]/g, '');
if (normalize(foundId) === normalize(id.toUpperCase())) {
const a = normalize(foundId);
const b = normalize(id.toUpperCase());
console.error(`比较: [${a}] vs [${b}]`);
if (a === b) {
detailPath = $(el).attr('href');
return false;
}