Update alist

pull/69/head
FongMi 3 years ago
parent 1e6072146e
commit f5e2e07f7f
  1. 7
      app/src/main/java/com/github/catvod/spider/AList.java
  2. BIN
      jar/custom_spider.jar
  3. 2
      jar/custom_spider.jar.md5

@ -105,7 +105,8 @@ public class AList extends Spider {
} }
@Override @Override
public String categoryContent(String tid, String pg, boolean filter, HashMap<String, String> extend) { public String categoryContent(String tid, String pg, boolean filter, HashMap<String, String> extend) throws Exception {
fetchRule();
String type = extend.containsKey("type") ? extend.get("type") : "name"; String type = extend.containsKey("type") ? extend.get("type") : "name";
String order = extend.containsKey("order") ? extend.get("order") : "asc"; String order = extend.containsKey("order") ? extend.get("order") : "asc";
List<Item> folders = new ArrayList<>(); List<Item> folders = new ArrayList<>();
@ -123,7 +124,8 @@ public class AList extends Spider {
} }
@Override @Override
public String detailContent(List<String> ids) { public String detailContent(List<String> ids) throws Exception {
fetchRule();
String id = ids.get(0); String id = ids.get(0);
Item item = getDetail(id); Item item = getDetail(id);
String path = id.substring(0, id.lastIndexOf("/")); String path = id.substring(0, id.lastIndexOf("/"));
@ -140,6 +142,7 @@ public class AList extends Spider {
@Override @Override
public String searchContent(String keyword, boolean quick) throws Exception { public String searchContent(String keyword, boolean quick) throws Exception {
fetchRule();
List<Vod> list = new ArrayList<>(); List<Vod> list = new ArrayList<>();
JSONObject params = new JSONObject(); JSONObject params = new JSONObject();
params.put("path", "/"); params.put("path", "/");

Binary file not shown.

@ -1 +1 @@
999ead597b4ef0e43de0321fd93ff0d4 3161b616a35606b97460c59b19ed3b40

Loading…
Cancel
Save