Fix init error bug

This commit is contained in:
FongMi 2022-11-15 11:47:44 +08:00
parent a58c645bc7
commit 7060c045c4
5 changed files with 5 additions and 4 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

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8db26ed82717e72b5713818e0123a993",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;2d2edf4641fcba0a6f315a29cdbbef51",
"wallpaper": "https://gao.chuqiuyu.tk",
"lives": [
{

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8db26ed82717e72b5713818e0123a993",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;2d2edf4641fcba0a6f315a29cdbbef51",
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
"lives": [
{