Skip to content

Commit

Permalink
fix MH50
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleydu committed Nov 30, 2020
1 parent 8466a34 commit bb22a2c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/src/main/java/com/hiroshi/cimoc/source/MH50.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public MH50(Source source) {
@Override
public Request getSearchRequest(String keyword, int page) {
if (page == 1) {
String url = StringUtils.format("https://m.manhuabei.com/search/?keywords=%s&page=%d", keyword, page);
String url = StringUtils.format("https://m.manhuadai.com/search/?keywords=%s&page=%d", keyword, page);
return HttpUtils.getSimpleMobileRequest(url);
}
return null;
Expand All @@ -77,17 +77,17 @@ protected Comic parse(Node node) {

@Override
public String getUrl(String cid) {
return StringUtils.format("https://m.manhuabei.com/manhua/%s/", cid);
return StringUtils.format("https://m.manhuadai.com/manhua/%s/", cid);
}

@Override
protected void initUrlFilterList() {
filter.add(new UrlFilter("m.manhuabei.com"));
filter.add(new UrlFilter("m.manhuadai.com"));
}

@Override
public Request getInfoRequest(String cid) {
String url = StringUtils.format("https://m.manhuabei.com/manhua/%s/", cid);
String url = StringUtils.format("https://m.manhuadai.com/manhua/%s/", cid);
return HttpUtils.getSimpleMobileRequest(url);
}

Expand Down Expand Up @@ -121,7 +121,7 @@ public List<Chapter> parseChapter(String html, Comic comic, Long sourceComic) {

@Override
public Request getImagesRequest(String cid, String path) {
String url = StringUtils.format("https://m.manhuabei.com/manhua/%s/%s", cid, path);
String url = StringUtils.format("https://m.manhuadai.com/manhua/%s/%s", cid, path);
return HttpUtils.getSimpleMobileRequest(url);
}

Expand Down Expand Up @@ -239,9 +239,9 @@ public String getFormat(String... args) {
.concat(args[CATEGORY_PROGRESS]).trim();
String finalPath;
if (path.isEmpty()) {
finalPath = StringUtils.format("https://m.manhuabei.com/list/");
finalPath = StringUtils.format("https://m.manhuadai.com/list/");
} else {
finalPath = StringUtils.format("https://m.manhuabei.com/list/%s/?page=%%d", path).replaceAll("\\s+", "-");
finalPath = StringUtils.format("https://m.manhuadai.com/list/%s/?page=%%d", path).replaceAll("\\s+", "-");
}
return finalPath;
}
Expand Down

0 comments on commit bb22a2c

Please sign in to comment.