This commit is contained in:
parent
f4a0dea73a
commit
dca75a316b
|
|
@ -13,6 +13,7 @@ import com.github.catvod.utils.gZip;
|
||||||
import com.github.catvod.utils.okhttp.OKCallBack;
|
import com.github.catvod.utils.okhttp.OKCallBack;
|
||||||
import com.github.catvod.utils.okhttp.OkHttpUtil;
|
import com.github.catvod.utils.okhttp.OkHttpUtil;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
@ -257,7 +258,14 @@ public class Bdys01 extends Spider {
|
||||||
Element vod = list.get(i);
|
Element vod = list.get(i);
|
||||||
String title = vod.selectFirst("h3.mb-0").text();
|
String title = vod.selectFirst("h3.mb-0").text();
|
||||||
String cover = vod.selectFirst("img.w-100").attr("src");
|
String cover = vod.selectFirst("img.w-100").attr("src");
|
||||||
String remark = vod.selectFirst("p.mb-0").text();
|
String score = vod.selectFirst("div.ribbon") == null ? "" : vod.selectFirst("div.ribbon").text();
|
||||||
|
String remark;
|
||||||
|
if (!StringUtils.isBlank(score)) {
|
||||||
|
remark = score + (vod.selectFirst("span.badge") == null ? "" : vod.selectFirst("span.badge").text());
|
||||||
|
} else {
|
||||||
|
remark = vod.selectFirst("span.badge") == null ? "" : vod.selectFirst("span.badge").text();
|
||||||
|
}
|
||||||
|
|
||||||
String idtt = vod.selectFirst("a.d-block").attr("href");
|
String idtt = vod.selectFirst("a.d-block").attr("href");
|
||||||
String id = "";
|
String id = "";
|
||||||
if (idtt.contains("JSESSIONID")) {
|
if (idtt.contains("JSESSIONID")) {
|
||||||
|
|
@ -452,6 +460,7 @@ public class Bdys01 extends Spider {
|
||||||
@Override
|
@Override
|
||||||
protected void onFailure(Call call, Exception e) {
|
protected void onFailure(Call call, Exception e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResponse(Response response) {
|
protected void onResponse(Response response) {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
5e220cf193c6aba87a838f1113035a91
|
20bc02ea99492835f495a8482c57b9a3
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "./custom_spider.jar;md5;638431aca0811c206acecc9a383dbc7c",
|
"spider": "./custom_spider.jar;md5;2fd40534e2fc612371265778d3e1195b",
|
||||||
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
|
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
638431aca0811c206acecc9a383dbc7c
|
fd809b4f30918ec33ce29260642d4f42
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue