'更新可用状态'

This commit is contained in:
zhangjie
2024-03-13 19:10:47 +08:00
parent 12285ac9c1
commit 014de4f40c
5 changed files with 8 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ public class MainActivity extends Activity {
private void initSpider() {
try {
Init.init(getApplicationContext());
spider = new Ikanbot();
spider = new MiMei();
spider.init(this, "");
} catch (Throwable e) {
e.printStackTrace();
@@ -85,9 +85,10 @@ public class MainActivity extends Activity {
}
}
public void categoryContent() {
public void categoryContent(){
try {
Logger.t("categoryContent").d(spider.categoryContent("/index-movie", "1", true, new HashMap<>()));
Logger.t("categoryContent").d(spider.categoryContent("/suoyoushipin/zhibo", "1", true, new HashMap<>()));
} catch (Throwable e) {
e.printStackTrace();
}

View File

@@ -174,8 +174,8 @@ public class CaoLiu extends Spider {
// 只有图片模版
if (tid == "57") {
List<Vod> list = parseHtml(doc);
Integer total = (Integer.parseInt(pg) + 1) * 100;
return Result.string(Integer.parseInt(pg), Integer.parseInt(pg) + 1, 100, total, list);
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<>();
// 图文结合模版

View File

@@ -98,7 +98,7 @@ public class MiMei extends Spider {
Document doc = Jsoup.parse(OkHttp.string(target, getHeaders()));
List<Vod> list;
if (tid == "zhibo"){
if (tid == "/suoyoushipin/zhibo"){
list = parseHtmlZB(doc);
}else {
list = parseHtml(doc);