mirror of
https://github.com/bizhangjie/CatVodSpider.git
synced 2025-10-28 02:22:28 +00:00
'更新可用状态'
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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<>();
|
||||
// 图文结合模版
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user