Fix parsing title

This commit is contained in:
seven332 committed 2019-04-03 19:56:51 +08:00
1 parent 24612b7d14
commit 4b1c6ac917
1 file changed
+9 -1
@@ -137,9 +137,17 @@ public class GalleryListParser {
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<>();