Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
SISIS: Fix title parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Mar 11, 2024
1 parent d77da14 commit 99cba47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ static DetailedItem parseDetail(String html, String html2, String html3, String

if (doc.select(".aw_teaser_title, .results-teaser > tbody > tr > td > h1, #middle h2").size() > 0) {
result.setTitle(
doc.select(".aw_teaser_title, .results-teaser > tbody > tr > td > h1, #middle h2").first()
doc.select(".aw_teaser_title, .results-teaser > tbody > tr > td > h1, #middle h2").last()
.text().trim());
} else if (doc.select(".data td strong").size() > 0) {
result.setTitle(doc.select(".data td strong").first().text().trim());
Expand Down

0 comments on commit 99cba47

Please sign in to comment.