Update
This commit is contained in:
parent
62e7a7fdf3
commit
0fe1c02d18
|
|
@ -1,6 +1,7 @@
|
|||
package com.github.catvod.spider;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
import com.github.catvod.bean.Class;
|
||||
import com.github.catvod.bean.Filter;
|
||||
|
|
@ -156,7 +157,7 @@ public class AList extends Spider {
|
|||
|
||||
@Override
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
@ -218,6 +219,7 @@ public class AList extends Spider {
|
|||
String path = id.contains("/") ? id.substring(id.indexOf("/") + 1) : "";
|
||||
String url = ext.get(key) + (v3(key) ? "/api/fs/get" : "/api/public/path");
|
||||
JSONObject params = new JSONObject();
|
||||
Log.e("DDD",path);
|
||||
params.put("path", path);
|
||||
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();
|
||||
|
|
@ -229,7 +231,7 @@ public class AList extends Spider {
|
|||
|
||||
private String findSubs(String path, List<Item> items) {
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
3161b616a35606b97460c59b19ed3b40
|
||||
8365d8c8b8dd3a37ceef6dbb6bdf3b55
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
"lives": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
"lives": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue