add - bili66
This commit is contained in:
@@ -50,17 +50,19 @@ public class PushAgent extends Spider {
|
||||
}
|
||||
|
||||
public void getToken(String token){
|
||||
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!=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;
|
||||
}
|
||||
if (token.startsWith("http")) {
|
||||
Token = OkHttpUtil.string(token, null);
|
||||
}else Token = token;
|
||||
}
|
||||
|
||||
public JSONObject fetchRule(boolean flag,int t) {
|
||||
|
||||
@@ -30,6 +30,7 @@ public class XBiubiu extends Spider {
|
||||
|
||||
public void init(Context context, String extend) {
|
||||
pushAgent= new PushAgent();
|
||||
pushAgent.init(context, "");
|
||||
super.init(context, extend);
|
||||
this.ext = extend;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user