Skip to content

Commit

Permalink
fix 517(#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
feilongfl authored and Haleydu committed Jul 26, 2020
1 parent 14402a2 commit ee91af3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/main/java/com/hiroshi/cimoc/source/MH517.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ public Request getImagesRequest(String cid, String path) {
public List<ImageUrl> parseImages(String html) {
List<ImageUrl> list = new ArrayList<>();
Matcher pageMatcher = Pattern.compile("qTcms_S_m_murl_e=\"(.*?)\"").matcher(html);
if (!pageMatcher.find()) {
return null;
}
final String mangaid = StringUtils.match("var qTcms_S_m_id=\"(\\w+?)\";", html, 1);
if (!pageMatcher.find()) return null;
try {
final String imgArrStr = DecryptionUtils.base64Decrypt(pageMatcher.group(1));
int i = 0;
for (String item : imgArrStr.split("\\$.*?\\$")) {
list.add(new ImageUrl(i++, item, false));
final String url = "http://m.517manhua.com/statics/pic/?p=" + item + "&wapif=1&picid=" + mangaid + "&m_httpurl=";
list.add(new ImageUrl(i++, url, false));
}
} finally {
return list;
Expand All @@ -138,7 +138,7 @@ public Request getCheckRequest(String cid) {

@Override
public Headers getHeader() {
return Headers.of("Referer", "http://m.517manhua.com/lanmu/shenqiangyiyaochuan/951330.html");
return Headers.of("Referer", "http://m.517manhua.com/");
}

}

0 comments on commit ee91af3

Please sign in to comment.