Skip to content

Commit 3715f7b

Browse files
committed
Remove invalid html fragment
1 parent b88b359 commit 3715f7b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/src/main/java/de/mygrades/main/core/Scraper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ private void makeJsoupRequest(Map<String, String> requestData, Connection.Method
240240
document.outputSettings().escapeMode(Entities.EscapeMode.xhtml);
241241
document.outputSettings().syntax(Document.OutputSettings.Syntax.xml);
242242
document.select("script").remove();
243+
document.select("td:contains(aktuellen ECTS-Grades)").remove(); // remove invalid html (see error #71)
243244

244245
// check if there is a redirect via meta-equiv=refresh
245246
Element metaRefresh = document.select("html head meta[http-equiv=refresh]").first();

0 commit comments

Comments
 (0)