Skip to content

Commit

Permalink
修复漫画堆部分漫画无法观看的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleydu committed Jul 18, 2020
1 parent dd631f8 commit 433ec1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/hiroshi/cimoc/source/MH50.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ private String decrypt(String code) {

//根据文件名获取图片url,参考common.js中getChapterImage函数
private String getImageUrlByKey(String key, String domain, String chapter) {
if (Pattern.matches("\\^https?://(images.dmzj.com|imgsmall.dmzj.com)/i", key)) {
if (key.startsWith("http://images.dmzj.com")) {
try {
return domain + "/showImage.php?url=" + URLEncoder.encode(key, "utf-8");
return domain +"/showImage.php?url=" + key;
} catch (Exception e) {
return null;
}
Expand Down Expand Up @@ -171,7 +171,7 @@ public List<ImageUrl> parseImages(String html) {
for (int i = 0; i != imageListSize; ++i) {
String key = imageList.getString(i);
String imageUrl = getImageUrlByKey(key, server[1], chapterPath);

Log.d("hrd imageUrl",imageUrl);
list.add(new ImageUrl(i + 1, imageUrl, false));
}

Expand Down

0 comments on commit 433ec1a

Please sign in to comment.