Skip to content

Commit

Permalink
👽 fix: mojeek parser update due to upstream breaking api changes (#640
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jfvillablanca authored Dec 13, 2024
1 parent 2e64fd5 commit ab126b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/engines/mojeek.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ impl Mojeek {
parser: SearchResultParser::new(
".result-col",
".results-standard li",
"a span.url",
"h2 a.title",
"h2 > a.title",
"a.ob",
"p.s",
)?,
})
Expand Down Expand Up @@ -157,7 +157,7 @@ impl SearchEngine for Mojeek {
.parse_for_results(&document, |title, url, desc| {
Some(SearchResult::new(
title.inner_html().trim(),
url.inner_html().trim(),
url.attr("href")?.trim(),
desc.inner_html().trim(),
&["mojeek"],
))
Expand Down

0 comments on commit ab126b9

Please sign in to comment.