add - bili66
This commit is contained in:
@@ -50,17 +50,19 @@ public class PushAgent extends Spider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void getToken(String token){
|
public void getToken(String token){
|
||||||
String[] arr = token.split(";");
|
if(token!=null&&token.equals("")){
|
||||||
if (arr.length > 0) {
|
String[] arr = token.split(";");
|
||||||
token = arr[0];
|
if (arr.length > 0) {
|
||||||
if(arr.length>2){
|
token = arr[0];
|
||||||
String aid = arr[2];
|
if(arr.length>2){
|
||||||
if(Misc.isNumeric(aid)) type = Integer.valueOf(aid);
|
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) {
|
public JSONObject fetchRule(boolean flag,int t) {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ public class XBiubiu extends Spider {
|
|||||||
|
|
||||||
public void init(Context context, String extend) {
|
public void init(Context context, String extend) {
|
||||||
pushAgent= new PushAgent();
|
pushAgent= new PushAgent();
|
||||||
|
pushAgent.init(context, "");
|
||||||
super.init(context, extend);
|
super.init(context, extend);
|
||||||
this.ext = extend;
|
this.ext = extend;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user