Fix init error bug

This commit is contained in:
FongMi 2022-11-15 11:47:44 +08:00
parent 60b62c99ed
commit e8068ad60b
3 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -1 +1 @@
8db26ed82717e72b5713818e0123a993
2d2edf4641fcba0a6f315a29cdbbef51