Skip to content

Commit

Permalink
fix: Update IMDb.js with updated search result href xapth
Browse files Browse the repository at this point in the history
  • Loading branch information
johev09 authored Nov 8, 2024
1 parent 4046f03 commit e57d348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IMDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function getSearchResults(doc, checkOnly) {
var found = false;
var rows = ZU.xpath(doc, '//li[contains(@class, "find-result-item")]');
for (let i = 0; i < rows.length; i++) {
var href = ZU.xpathText(rows[i], './a/@href');
var href = ZU.xpathText(rows[i], '//a/@href');
var title = ZU.trimInternal(rows[i].textContent);
if (!href || !title) continue;
if (checkOnly) return true;
Expand Down

0 comments on commit e57d348

Please sign in to comment.