Fix init error bug
This commit is contained in:
parent
60b62c99ed
commit
e8068ad60b
|
|
@ -43,7 +43,7 @@ public class Bili extends Spider {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void fetchRule() throws Exception {
|
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);
|
if (extend.startsWith("http")) extend = OkHttpUtil.string(extend);
|
||||||
ext = new JSONObject(extend);
|
ext = new JSONObject(extend);
|
||||||
setHeader();
|
setHeader();
|
||||||
|
|
@ -68,6 +68,7 @@ public class Bili extends Spider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String homeVideoContent() throws Exception {
|
public String homeVideoContent() throws Exception {
|
||||||
|
fetchRule();
|
||||||
return categoryContent("窗 白噪音", "1", true, new HashMap<>());
|
return categoryContent("窗 白噪音", "1", true, new HashMap<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
8db26ed82717e72b5713818e0123a993
|
2d2edf4641fcba0a6f315a29cdbbef51
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue