Revert "Fix alist"

This reverts commit 6aad0e62e2.
This commit is contained in:
FongMi 2022-12-21 21:41:54 +08:00
parent 6aad0e62e2
commit de6ccf9e82
3 changed files with 3 additions and 4 deletions

View File

@ -17,7 +17,6 @@ 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;
@ -134,7 +133,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", URLEncoder.encode(path));
params.put("path", path);
params.put("password", drive.getPassword());
String response = OkHttpUtil.postJson(drive.getApi(), params.toString());
return Item.objectFrom(getDetailJson(drive.isNew(), response));
@ -149,7 +148,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", URLEncoder.encode(path));
params.put("path", 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 @@
9fbfe50fb567b4762fc34320a5bd35f0
94c24a6fc84d232c2b32894d5e0d042c