Fix init error bug

This commit is contained in:
FongMi 2022-11-15 13:57:56 +08:00
parent e8068ad60b
commit 43f0e1a76c
3 changed files with 7 additions and 2 deletions

View File

@ -42,9 +42,14 @@ public class Bili extends Spider {
header.put("Referer", url);
}
private void fetchExt() {
String result = OkHttpUtil.string(extend);
if (!TextUtils.isEmpty(result)) extend = result;
}
private void fetchRule() throws Exception {
if (header.containsKey("cookie") && header.get("cookie").length() > 0) return;
if (extend.startsWith("http")) extend = OkHttpUtil.string(extend);
if (extend.startsWith("http")) fetchExt();
ext = new JSONObject(extend);
setHeader();
}

Binary file not shown.

View File

@ -1 +1 @@
2d2edf4641fcba0a6f315a29cdbbef51
940f5635d30de6ef9025c334afaf706b