Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
Fix parsing title
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Apr 3, 2019
1 parent 24612b7 commit 4b1c6ac
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,17 @@ private static GalleryInfo parseGalleryInfo(Element e) {
if (result != null) {
gi.gid = result.gid;
gi.token = result.token;
gi.title = a.text().trim();
}
}

Element child = glname;
Elements children = glname.children();
while (children.size() != 0) {
child = children.get(0);
children = child.children();
}
gi.title = child.text().trim();

Element tbody = JsoupUtils.getElementByTag(glname, "tbody");
if (tbody != null) {
ArrayList<String> tags = new ArrayList<>();
Expand Down

0 comments on commit 4b1c6ac

Please sign in to comment.