Fix alist search
This commit is contained in:
parent
26b921d8d0
commit
27add43a85
|
|
@ -136,8 +136,8 @@ public class AList extends Spider {
|
||||||
String path = id.contains("/") ? id.substring(id.indexOf("/")) : "";
|
String path = id.contains("/") ? id.substring(id.indexOf("/")) : "";
|
||||||
Drive drive = getDrive(key);
|
Drive drive = getDrive(key);
|
||||||
JSONObject params = new JSONObject();
|
JSONObject params = new JSONObject();
|
||||||
params.put("path", drive.getPath() + path);
|
|
||||||
params.put("password", drive.getPassword());
|
params.put("password", drive.getPassword());
|
||||||
|
params.put("path", path.startsWith(drive.getPath()) ? path : drive.getPath() + path);
|
||||||
String response = OkHttp.postJson(drive.getApi(), params.toString());
|
String response = OkHttp.postJson(drive.getApi(), params.toString());
|
||||||
return Item.objectFrom(getDetailJson(drive.isNew(), response));
|
return Item.objectFrom(getDetailJson(drive.isNew(), response));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
@ -151,8 +151,8 @@ public class AList extends Spider {
|
||||||
String path = id.contains("/") ? id.substring(id.indexOf("/")) : "";
|
String path = id.contains("/") ? id.substring(id.indexOf("/")) : "";
|
||||||
Drive drive = getDrive(key);
|
Drive drive = getDrive(key);
|
||||||
JSONObject params = new JSONObject();
|
JSONObject params = new JSONObject();
|
||||||
params.put("path", drive.getPath() + path);
|
|
||||||
params.put("password", drive.getPassword());
|
params.put("password", drive.getPassword());
|
||||||
|
params.put("path", path.startsWith(drive.getPath()) ? path : drive.getPath() + path);
|
||||||
String response = OkHttp.postJson(drive.listApi(), params.toString());
|
String response = OkHttp.postJson(drive.listApi(), params.toString());
|
||||||
List<Item> items = Item.arrayFrom(getListJson(drive.isNew(), response));
|
List<Item> items = Item.arrayFrom(getListJson(drive.isNew(), response));
|
||||||
Iterator<Item> iterator = items.iterator();
|
Iterator<Item> iterator = items.iterator();
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
f911aa41c828daaabbc21b9f462b18d8
|
3b702732dd7f792513d3f3cf006f8898
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue