diff --git a/app/src/main/java/com/github/catvod/spider/Bili.java b/app/src/main/java/com/github/catvod/spider/Bili.java index d9c46352..2061fd7a 100644 --- a/app/src/main/java/com/github/catvod/spider/Bili.java +++ b/app/src/main/java/com/github/catvod/spider/Bili.java @@ -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(); } diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index ca931864..6a6c24e0 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index 5380a0de..120a4bb3 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -2d2edf4641fcba0a6f315a29cdbbef51 +940f5635d30de6ef9025c334afaf706b diff --git a/json/adult.json b/json/adult.json index affa2868..e85d6411 100644 --- a/json/adult.json +++ b/json/adult.json @@ -1,5 +1,5 @@ { - "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;2d2edf4641fcba0a6f315a29cdbbef51", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;940f5635d30de6ef9025c334afaf706b", "wallpaper": "https://gao.chuqiuyu.tk", "lives": [ { diff --git a/json/config.json b/json/config.json index eda67ae1..3dac606d 100644 --- a/json/config.json +++ b/json/config.json @@ -1,5 +1,5 @@ { - "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;2d2edf4641fcba0a6f315a29cdbbef51", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;940f5635d30de6ef9025c334afaf706b", "wallpaper": "http://www.kf666888.cn/api/tvbox/img", "lives": [ {