Fix init error bug

pull/69/head
FongMi 3 years ago
parent 60b62c99ed
commit e8068ad60b
  1. 3
      app/src/main/java/com/github/catvod/spider/Bili.java
  2. BIN
      jar/custom_spider.jar
  3. 2
      jar/custom_spider.jar.md5

@ -43,7 +43,7 @@ public class Bili extends Spider {
}
private void fetchRule() throws Exception {
if (ext != null && !header.isEmpty()) return;
if (header.containsKey("cookie") && header.get("cookie").length() > 0) return;
if (extend.startsWith("http")) extend = OkHttpUtil.string(extend);
ext = new JSONObject(extend);
setHeader();
@ -68,6 +68,7 @@ public class Bili extends Spider {
@Override
public String homeVideoContent() throws Exception {
fetchRule();
return categoryContent("窗 白噪音", "1", true, new HashMap<>());
}

Binary file not shown.

@ -1 +1 @@
8db26ed82717e72b5713818e0123a993
2d2edf4641fcba0a6f315a29cdbbef51

Loading…
Cancel
Save