'更新可用状态'
This commit is contained in:
parent
014de4f40c
commit
18ed57cdf0
app/src/main/java/com/github/catvod/spider
jar
@ -172,14 +172,14 @@ public class CaoLiu extends Spider {
|
||||
String target = cateUrl + tid + "&page=" + pg;
|
||||
Document doc = Jsoup.parse(OkHttp.string(target, getCookie()));
|
||||
// 只有图片模版
|
||||
if (tid == "57") {
|
||||
if ("57".equals(tid)) {
|
||||
List<Vod> list = parseHtml(doc);
|
||||
Integer total = (Integer.parseInt(pg) + 1) * 20;
|
||||
return Result.string(Integer.parseInt(pg), Integer.parseInt(pg) + 1, 20, total, list);
|
||||
}
|
||||
List<Vod> list = new ArrayList<>();
|
||||
// 图文结合模版
|
||||
if (tid == "47") {
|
||||
if ("47".equals(tid)) {
|
||||
for (Element element : doc.select("div.url_linkkarl")) {
|
||||
String pic = element.select("img").attr("data-aes");
|
||||
String href = element.attr("data-url").replace("read.php?tid=", "").split("&")[0];
|
||||
|
@ -98,7 +98,7 @@ public class MiMei extends Spider {
|
||||
Document doc = Jsoup.parse(OkHttp.string(target, getHeaders()));
|
||||
|
||||
List<Vod> list;
|
||||
if (tid == "/suoyoushipin/zhibo"){
|
||||
if ("/suoyoushipin/zhibo".equals(tid)){
|
||||
list = parseHtmlZB(doc);
|
||||
}else {
|
||||
list = parseHtml(doc);
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
786e80e823767f667587b072bd401d35
|
||||
e37bcb2ab7b46627714ff81f9af88009
|
||||
|
Loading…
x
Reference in New Issue
Block a user