This commit is contained in:
FongMi 2022-11-25 20:03:47 +08:00
parent 62e7a7fdf3
commit 0fe1c02d18
5 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,7 @@
package com.github.catvod.spider; package com.github.catvod.spider;
import android.content.Context; import android.content.Context;
import android.util.Log;
import com.github.catvod.bean.Class; import com.github.catvod.bean.Class;
import com.github.catvod.bean.Filter; import com.github.catvod.bean.Filter;
@ -156,7 +157,7 @@ public class AList extends Spider {
@Override @Override
public String playerContent(String flag, String id, List<String> vipFlags) { public String playerContent(String flag, String id, List<String> vipFlags) {
String[] ids = id.split("\\+"); String[] ids = id.split("~~~");
return Result.get().url(ids[0]).sub(getSub(ids)).string(); return Result.get().url(ids[0]).sub(getSub(ids)).string();
} }
@ -218,6 +219,7 @@ public class AList extends Spider {
String path = id.contains("/") ? id.substring(id.indexOf("/") + 1) : ""; String path = id.contains("/") ? id.substring(id.indexOf("/") + 1) : "";
String url = ext.get(key) + (v3(key) ? "/api/fs/get" : "/api/public/path"); String url = ext.get(key) + (v3(key) ? "/api/fs/get" : "/api/public/path");
JSONObject params = new JSONObject(); JSONObject params = new JSONObject();
Log.e("DDD",path);
params.put("path", path); params.put("path", path);
String response = OkHttpUtil.postJson(url, params.toString()); String response = OkHttpUtil.postJson(url, params.toString());
String json = v3(key) ? new JSONObject(response).getJSONObject("data").toString() : new JSONObject(response).getJSONObject("data").getJSONArray("files").getJSONObject(0).toString(); String json = v3(key) ? new JSONObject(response).getJSONObject("data").toString() : new JSONObject(response).getJSONObject("data").getJSONArray("files").getJSONObject(0).toString();
@ -229,7 +231,7 @@ public class AList extends Spider {
private String findSubs(String path, List<Item> items) { private String findSubs(String path, List<Item> items) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (Item item : items) if (Misc.isSub(item.getExt())) sb.append("+").append(Trans.get(item.getName())).append("@").append(Misc.getSubMimeType(item.getExt())).append("@").append(item.getVodId(path)); for (Item item : items) if (Misc.isSub(item.getExt())) sb.append("~~~").append(Trans.get(item.getName())).append("@").append(Misc.getSubMimeType(item.getExt())).append("@").append(item.getVodId(path));
return sb.toString(); return sb.toString();
} }

Binary file not shown.

View File

@ -1 +1 @@
3161b616a35606b97460c59b19ed3b40 8365d8c8b8dd3a37ceef6dbb6bdf3b55

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;3161b616a35606b97460c59b19ed3b40", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8365d8c8b8dd3a37ceef6dbb6bdf3b55",
"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;3161b616a35606b97460c59b19ed3b40", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8365d8c8b8dd3a37ceef6dbb6bdf3b55",
"wallpaper": "http://www.kf666888.cn/api/tvbox/img", "wallpaper": "http://www.kf666888.cn/api/tvbox/img",
"lives": [ "lives": [
{ {