add - douban bg99

This commit is contained in:
yangqiang3504
2022-09-13 14:29:32 +08:00
parent 0d7fb4c4e5
commit d39effea22
4 changed files with 27 additions and 11 deletions
@@ -110,8 +110,9 @@ public class PushAgentQQ extends Spider {
if (!o.toString().equals("null")) {
o1 = v.getJSONObject("rating");
remark = o1.optString("value", "暂无评分");
}else remark = "暂无评分";
remark = o1.optString("value", "暂无评分");
}else {
remark = "暂无评分";
}
op1 = v.getJSONObject("pic");
pic = op1.optString("normal", "");
vo.put("vod_id", "");
@@ -132,7 +133,10 @@ public class PushAgentQQ extends Spider {
Misc.jsonUrl = extend;
}
}
PushAgent.fetchRule(false, 0);
if (Misc.pushAgent == null) {
Misc.pushAgent = new PushAgent();
Misc.pushAgent.init(context, extend);
}
}
@@ -269,13 +273,13 @@ public class PushAgentQQ extends Spider {
@Override
public String detailContent(List<String> list) {
return PushAgent.getDetail(list);
return Misc.pushAgent.getDetail(list);
}
@Override
public String playerContent(String str, String str2, List<String> list) {
return PushAgent.player(str, str2, list);
return Misc.pushAgent.player(str, str2, list);
}
@Override
@@ -17,7 +17,10 @@ public class Upyunso extends Spider {
@Override
public void init(Context context, String extend) {
super.init(context, extend);
PushAgent.fetchRule(false, 0);
if (Misc.pushAgent == null) {
Misc.pushAgent = new PushAgent();
Misc.pushAgent.init(context, extend);
}
}
@Override
@@ -4,6 +4,7 @@ import android.content.Context;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.utils.Misc;
import com.github.catvod.utils.okhttp.OkHttpUtil;
import org.json.JSONArray;
@@ -17,9 +18,12 @@ import java.util.regex.Pattern;
public class Yiso extends Spider {
private static final Pattern aliyun = Pattern.compile("(https://www.aliyundrive.com/s/[^\"]+)");
@Override
public void init(Context context) {
public void init(Context context, String extend) {
super.init(context);
PushAgent.fetchRule(false, 0);
if (Misc.pushAgent == null) {
Misc.pushAgent = new PushAgent();
Misc.pushAgent.init(context, extend);
}
}
@Override
@@ -33,7 +37,7 @@ public class Yiso extends Spider {
}
public String playerContent(String str, String str2, List<String> list) {
return PushAgent.player(str, str2, list);
return Misc.pushAgent.player(str, str2, list);
}
protected static HashMap<String, String> sHeaders() {