Skip to content

Commit

Permalink
Merge pull request #202 from lx200916/Fix-9977
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleydu authored Feb 13, 2021
2 parents 896afd9 + ce24139 commit 14172b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/java/com/hiroshi/cimoc/source/Hhxxee.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ public Comic parseInfo(String html, Comic comic) throws UnsupportedEncodingExcep
Node body = new Node(html);
String title = body.text(".cTitle");
String cover = body.src(".cDefaultImg > img");
String update = "";
String author = "";
String update = body.text(".cInfoTxt tr:nth-child(5) > td:last-child").trim().split("更新時間:")[1];
String author = body.text(".cInfoTxt tr:nth-child(2) > td:last-child").trim();
;
String intro = body.text(".cCon");
boolean status = false;
comic.setInfo(title, cover, update, intro, author, status);
Expand All @@ -108,7 +109,7 @@ public Comic parseInfo(String html, Comic comic) throws UnsupportedEncodingExcep
public List<Chapter> parseChapter(String html, Comic comic, Long sourceComic) {
List<Chapter> list = new LinkedList<>();
int i=0;
for (Node node : new Node(html).list("#subBookListAct > div")) {
for (Node node : new Node(html).list(".cVolList > div")) {
String title = node.text("a");
String path = node.hrefWithSplit("a", 2);
list.add(new Chapter(Long.parseLong(sourceComic + "000" + i++), sourceComic, title, path));
Expand Down

0 comments on commit 14172b4

Please sign in to comment.