diff --git a/app/src/main/java/com/github/catvod/spider/Living.java b/app/src/main/java/com/github/catvod/spider/Living.java index 6badba6a..0244a326 100644 --- a/app/src/main/java/com/github/catvod/spider/Living.java +++ b/app/src/main/java/com/github/catvod/spider/Living.java @@ -33,7 +33,6 @@ import java.util.Objects; public class Living extends Spider { private String host = "https://lemonlive.deno.dev"; - private String cookie = ""; @Override public void init(Context context, String extend) throws Exception { @@ -136,13 +135,7 @@ public class Living extends Spider { } else { String[] split = tid.split("_"); String url = host + "/api/" + split[0] + "/getCategoryRooms?id=" + split[1] + "&pid=" + (split[0].equals("bilibili") ? "2" : "1") + "&page=" + pg; - if (!TextUtils.isEmpty(cookie)) { - url = url + "&cookie=" + URLDecoder.decode(cookie, "UTF-8"); - } JSONObject json = request(url); - if (!TextUtils.isEmpty(json.optJSONObject("data").optString("cookie"))) { - cookie = json.optJSONObject("data").optString("cookie"); - } List vodList = new ArrayList<>(); for (int i = 0; i < json.optJSONObject("data").optJSONArray("list").length(); i++) { JSONObject data = json.optJSONObject("data").optJSONArray("list").optJSONObject(i); diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 6995131b..0a7b0906 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 64cdd31f..02893d37 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -426c3863c5e4ff58a53ee449fc619266 +1988877e7ba7cbd557417f95d5ca8f61