Fix alist
This commit is contained in:
parent
6f2496dfd4
commit
a727a745ce
|
|
@ -17,6 +17,7 @@ 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;
|
||||||
|
|
@ -133,7 +134,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", path);
|
params.put("path", URLEncoder.encode(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));
|
||||||
|
|
@ -148,7 +149,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", path);
|
params.put("path", URLEncoder.encode(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.
|
|
@ -1 +1 @@
|
||||||
94c24a6fc84d232c2b32894d5e0d042c
|
9fbfe50fb567b4762fc34320a5bd35f0
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;94c24a6fc84d232c2b32894d5e0d042c",
|
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;9fbfe50fb567b4762fc34320a5bd35f0",
|
||||||
"wallpaper": "https://gao.chuqiuyu.tk",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;94c24a6fc84d232c2b32894d5e0d042c",
|
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;9fbfe50fb567b4762fc34320a5bd35f0",
|
||||||
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
|
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue