diff --git a/app/src/main/java/com/github/catvod/spider/AList.java b/app/src/main/java/com/github/catvod/spider/AList.java index 402349fa..a497cf66 100644 --- a/app/src/main/java/com/github/catvod/spider/AList.java +++ b/app/src/main/java/com/github/catvod/spider/AList.java @@ -136,8 +136,8 @@ public class AList extends Spider { String path = id.contains("/") ? id.substring(id.indexOf("/")) : ""; Drive drive = getDrive(key); JSONObject params = new JSONObject(); - params.put("path", drive.getPath() + path); params.put("password", drive.getPassword()); + params.put("path", path.startsWith(drive.getPath()) ? path : drive.getPath() + path); String response = OkHttp.postJson(drive.getApi(), params.toString()); return Item.objectFrom(getDetailJson(drive.isNew(), response)); } catch (Exception e) { @@ -151,8 +151,8 @@ public class AList extends Spider { String path = id.contains("/") ? id.substring(id.indexOf("/")) : ""; Drive drive = getDrive(key); JSONObject params = new JSONObject(); - params.put("path", drive.getPath() + path); params.put("password", drive.getPassword()); + params.put("path", path.startsWith(drive.getPath()) ? path : drive.getPath() + path); String response = OkHttp.postJson(drive.listApi(), params.toString()); List items = Item.arrayFrom(getListJson(drive.isNew(), response)); Iterator iterator = items.iterator(); diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index cbe6a689..5e1d3120 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 d364913d..edfd9561 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -f911aa41c828daaabbc21b9f462b18d8 +3b702732dd7f792513d3f3cf006f8898 diff --git a/json/adult.json b/json/adult.json index 6270abbb..cecf3dd0 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;f911aa41c828daaabbc21b9f462b18d8", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;3b702732dd7f792513d3f3cf006f8898", "wallpaper": "https://gao.chuqiuyu.tk", "sites": [ { diff --git a/json/config.json b/json/config.json index da0cefd5..a42285c2 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;f911aa41c828daaabbc21b9f462b18d8", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;3b702732dd7f792513d3f3cf006f8898", "wallpaper": "http://饭太硬.ga/深色壁纸/api.php", "sites": [ {