Revert "Fix alist"

This reverts commit a727a745ce.
This commit is contained in:
FongMi 2022-12-21 21:41:54 +08:00
parent a727a745ce
commit 96636b0270
5 changed files with 5 additions and 6 deletions

View File

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

Binary file not shown.

View File

@ -1 +1 @@
9fbfe50fb567b4762fc34320a5bd35f0 94c24a6fc84d232c2b32894d5e0d042c

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;9fbfe50fb567b4762fc34320a5bd35f0", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;94c24a6fc84d232c2b32894d5e0d042c",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"lives": [ "lives": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;9fbfe50fb567b4762fc34320a5bd35f0", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;94c24a6fc84d232c2b32894d5e0d042c",
"wallpaper": "http://www.kf666888.cn/api/tvbox/img", "wallpaper": "http://www.kf666888.cn/api/tvbox/img",
"lives": [ "lives": [
{ {