Fix alist

This commit is contained in:
FongMi 2022-12-21 21:25:18 +08:00
parent f9912e2907
commit 6aad0e62e2
3 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,7 @@ import com.github.catvod.utils.Trans;
import org.json.JSONObject;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@ -133,7 +134,7 @@ public class AList extends Spider {
String path = id.contains("/") ? id.substring(id.indexOf("/") + 1) : "";
Drive drive = getDrive(key);
JSONObject params = new JSONObject();
params.put("path", path);
params.put("path", URLEncoder.encode(path));
params.put("password", drive.getPassword());
String response = OkHttpUtil.postJson(drive.getApi(), params.toString());
return Item.objectFrom(getDetailJson(drive.isNew(), response));
@ -148,7 +149,7 @@ public class AList extends Spider {
String path = id.contains("/") ? id.substring(id.indexOf("/") + 1) : "";
Drive drive = getDrive(key);
JSONObject params = new JSONObject();
params.put("path", path);
params.put("path", URLEncoder.encode(path));
params.put("password", drive.getPassword());
String response = OkHttpUtil.postJson(drive.listApi(), params.toString());
List<Item> items = Item.arrayFrom(getListJson(drive.isNew(), response));

Binary file not shown.

View File

@ -1 +1 @@
94c24a6fc84d232c2b32894d5e0d042c
9fbfe50fb567b4762fc34320a5bd35f0