Fix init error bug
This commit is contained in:
parent
a58c645bc7
commit
7060c045c4
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue