add - bili88
This commit is contained in:
@@ -46,23 +46,13 @@ public class PushAgent extends Spider {
|
|||||||
@Override
|
@Override
|
||||||
public void init(Context context, String extend) {
|
public void init(Context context, String extend) {
|
||||||
super.init(context, extend);
|
super.init(context, extend);
|
||||||
getToken(Token);
|
fetchRule(false,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void getToken(String token){
|
public void getToken(String token){
|
||||||
if(token!=null&&token.equals("")){
|
if (token.startsWith("http")) {
|
||||||
String[] arr = token.split(";");
|
Token = OkHttpUtil.string(token, null);
|
||||||
if (arr.length > 0) {
|
}else Token = token;
|
||||||
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) {
|
public JSONObject fetchRule(boolean flag,int t) {
|
||||||
@@ -81,6 +71,7 @@ public class PushAgent extends Spider {
|
|||||||
if(!tk.equals("")){
|
if(!tk.equals("")){
|
||||||
getToken(tk);
|
getToken(tk);
|
||||||
}
|
}
|
||||||
|
type = siteRule.optInt("ua", 1);
|
||||||
}
|
}
|
||||||
return jo;
|
return jo;
|
||||||
}
|
}
|
||||||
@@ -776,8 +767,11 @@ public class PushAgent extends Spider {
|
|||||||
ArrayList<String> aslist = new ArrayList<>();
|
ArrayList<String> aslist = new ArrayList<>();
|
||||||
String director = "",actor = "",desc = "";
|
String director = "",actor = "",desc = "";
|
||||||
String directorRegx = "导演:</span>",actorRegx = "主演:</span>",descRegx = "简介:</span>";
|
String directorRegx = "导演:</span>",actorRegx = "主演:</span>",descRegx = "简介:</span>";
|
||||||
|
if (!Misc.matcher(descRegx, content).find()) {
|
||||||
|
return vodAtom;
|
||||||
|
}
|
||||||
boolean fb = true;
|
boolean fb = true;
|
||||||
if (!Misc.matcher("actorRegx", content).find()) {
|
if (!Misc.matcher(actorRegx, content).find()) {
|
||||||
fb=false;
|
fb=false;
|
||||||
actorRegx = "主演:";
|
actorRegx = "主演:";
|
||||||
directorRegx = "导演:";
|
directorRegx = "导演:";
|
||||||
|
|||||||
Reference in New Issue
Block a user