Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Commit 9a51d7b

Browse files
committed
fix pufei(#248)
1 parent 6caa938 commit 9a51d7b

File tree

1 file changed

+7
-7
lines changed
  • app/src/main/java/com/hiroshi/cimoc/source

1 file changed

+7
-7
lines changed

app/src/main/java/com/hiroshi/cimoc/source/PuFei.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static Source getDefaultSource() {
4646
public Request getSearchRequest(String keyword, int page) throws UnsupportedEncodingException {
4747
String url = "";
4848
if (page == 1) {
49-
url = StringUtils.format("http://m.pufei.net/e/search/?searchget=1&tbname=mh&show=title,player,playadmin,bieming,pinyin,playadmin&tempid=4&keyboard=%s",
49+
url = StringUtils.format("http://m.pufei8.com/e/search/?searchget=1&tbname=mh&show=title,player,playadmin,bieming,pinyin,playadmin&tempid=4&keyboard=%s",
5050
URLEncoder.encode(keyword, "GB2312"));
5151
}
5252
return new Request.Builder().url(url).build();
@@ -71,17 +71,17 @@ protected Comic parse(Node node) {
7171

7272
@Override
7373
public String getUrl(String cid) {
74-
return "http://m.pufei.net/manhua/".concat(cid);
74+
return "http://m.pufei8.com/manhua/".concat(cid);
7575
}
7676

7777
@Override
7878
protected void initUrlFilterList() {
79-
filter.add(new UrlFilter("m.pufei.net"));
79+
filter.add(new UrlFilter("m.pufei8.com"));
8080
}
8181

8282
@Override
8383
public Request getInfoRequest(String cid) {
84-
String url = "http://m.pufei.net/manhua/".concat(cid);
84+
String url = "http://m.pufei8.com/manhua/".concat(cid);
8585
return new Request.Builder().url(url).build();
8686
}
8787

@@ -110,7 +110,7 @@ public List<Chapter> parseChapter(String html) {
110110

111111
@Override
112112
public Request getImagesRequest(String cid, String path) {
113-
String url = StringUtils.format("http://m.pufei.net/manhua/%s/%s.html", cid, path);
113+
String url = StringUtils.format("http://m.pufei8.com/manhua/%s/%s.html", cid, path);
114114
return new Request.Builder().url(url).build();
115115
}
116116

@@ -123,7 +123,7 @@ public List<ImageUrl> parseImages(String html) {
123123
str = DecryptionUtils.evalDecrypt(DecryptionUtils.base64Decrypt(str));
124124
String[] array = str.split(",");
125125
for (int i = 0; i != array.length; ++i) {
126-
list.add(new ImageUrl(i + 1, "http://res.img.1fi4b.cn/" + array[i], false));
126+
list.add(new ImageUrl(i + 1, "http://res.img.fffimage.com/" + array[i], false));
127127
}
128128
} catch (Exception e) {
129129
e.printStackTrace();
@@ -159,7 +159,7 @@ public List<Comic> parseCategory(String html, int page) {
159159

160160
@Override
161161
public Headers getHeader() {
162-
return Headers.of("Referer", "http://m.pufei.net");
162+
return Headers.of("Referer", "http://m.pufei8.com");
163163
}
164164

165165
private static class Category extends MangaCategory {

0 commit comments

Comments
 (0)