add - bili88

This commit is contained in:
yangqiang3504
2022-09-01 09:35:44 +08:00
parent 32009935af
commit 1877ff0bb9
@@ -46,24 +46,14 @@ public class PushAgent extends Spider {
@Override
public void init(Context context, String extend) {
super.init(context, extend);
getToken(Token);
fetchRule(false,0);
}
public void getToken(String token){
if(token!=null&&token.equals("")){
String[] arr = token.split(";");
if (arr.length > 0) {
token = arr[0];
if(arr.length>2){
String aid = arr[2];
if(Misc.isNumeric(aid)) type = Integer.valueOf(aid);
}
}
if (token.startsWith("http")) {
Token = OkHttpUtil.string(token, null);
}else Token = token;
}
}
public JSONObject fetchRule(boolean flag,int t) {
try {
@@ -81,6 +71,7 @@ public class PushAgent extends Spider {
if(!tk.equals("")){
getToken(tk);
}
type = siteRule.optInt("ua", 1);
}
return jo;
}
@@ -776,8 +767,11 @@ public class PushAgent extends Spider {
ArrayList<String> aslist = new ArrayList<>();
String director = "",actor = "",desc = "";
String directorRegx = "导演:</span>",actorRegx = "主演:</span>",descRegx = "简介:</span>";
if (!Misc.matcher(descRegx, content).find()) {
return vodAtom;
}
boolean fb = true;
if (!Misc.matcher("actorRegx", content).find()) {
if (!Misc.matcher(actorRegx, content).find()) {
fb=false;
actorRegx = "主演:";
directorRegx = "导演:";