Temporary debugging.
This commit is contained in:
1 parent
287cfbb120
commit
66b261811b
1 file changed
+5
-2
+5
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user