Skip to content

Commit

Permalink
fix CopyMH, closed #207
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleydu committed Feb 25, 2021
1 parent b92a50b commit fa907ae
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/src/main/java/com/hiroshi/cimoc/source/CopyMH.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import android.util.Base64;

import androidx.arch.core.util.Function;

import com.facebook.common.util.Hex;
import com.google.common.base.Functions;
import com.google.common.collect.Lists;
import com.hiroshi.cimoc.App;
import com.hiroshi.cimoc.model.Chapter;
Expand Down Expand Up @@ -211,7 +208,14 @@ public Request getCheckRequest(String cid) {

@Override
public String parseCheck(String html) {
return new Node(html).text("div.col-9.comicParticulars-title-right > ul > li:nth-child(5) > span.comicParticulars-right-txt");
try {
JSONObject comicInfo = new JSONObject(html).getJSONObject("results");
JSONObject body = comicInfo.getJSONObject("comic");
return body.getString("datetime_updated");
} catch (JSONException e) {
e.printStackTrace();
}
return "";
}

@Override
Expand Down

0 comments on commit fa907ae

Please sign in to comment.