'更新可用状态'

This commit is contained in:
zhangjie committed 2024-03-13 17:27:03 +08:00
1 parent 40285268c6
commit 9bd4c093ee
4 files changed
+10 -13

No files matched your search

@@ -87,7 +87,7 @@ public class MainActivity extends Activity {
public void categoryContent() { public void categoryContent() {
try { try {
Logger.t("categoryContent").d(spider.categoryContent("47", "1", true, new HashMap<>())); Logger.t("categoryContent").d(spider.categoryContent("57", "1", true, new HashMap<>()));
} catch (Throwable e) { } catch (Throwable e) {
e.printStackTrace(); e.printStackTrace();
} }
@@ -56,10 +56,10 @@ public class CaoLiu extends Spider {
String pic = element.select("img").attr("data-aes"); String pic = element.select("img").attr("data-aes");
String id = element.select("img").attr("alt"); String id = element.select("img").attr("alt");
// 获取图片进行解密 // 获取图片进行解密
// String string = OkHttp.string(pic); String string = OkHttp.string(pic);
// String picView = aesDecrypt(string); String picView = aesDecrypt(string);
String name = "看圖片"; String name = "看圖片";
list.add(new Vod(id, name, pic)); list.add(new Vod(id, name, picView));
} catch (Exception e) { } catch (Exception e) {
} }
} }
@@ -92,7 +92,7 @@ public class CaoLiu extends Spider {
public String homeContent(boolean filter) throws Exception { public String homeContent(boolean filter) throws Exception {
List<Class> classes = new ArrayList<>(); List<Class> classes = new ArrayList<>();
String[] typeIdList = {"57", "33", "47", "6", "7", "2", "3", "4", "5", "48"}; String[] typeIdList = {"57", "33", "47", "6", "7", "2", "3", "4", "5", "48"};
String[] typeNameList = {"VIP特享影視", "VIP影視專區", "草榴黑料記", "國產原創區", "中字原創區", "亞洲無碼區", "亞洲有碼區", "歐美原創區", "動漫原創區", "ASMR視訊區"}; String[] typeNameList = {"特享影視", "影視專區", "草榴黑料記", "國產原創區", "中字原創區", "亞洲無碼區", "亞洲有碼區", "歐美原創區", "動漫原創區", "ASMR視訊區"};
for (int i = 0; i < typeNameList.length; i++) { for (int i = 0; i < typeNameList.length; i++) {
classes.add(new Class(typeIdList[i], typeNameList[i])); classes.add(new Class(typeIdList[i], typeNameList[i]));
} }
@@ -103,9 +103,9 @@ public class CaoLiu extends Spider {
String href = element.attr("data-url").replace("read.php?tid=", "").split("&")[0]; String href = element.attr("data-url").replace("read.php?tid=", "").split("&")[0];
String name = element.select("h2").text(); String name = element.select("h2").text();
// 获取图片进行解密 // 获取图片进行解密
// String string = OkHttp.string(pic); String string = OkHttp.string(pic);
// String picView = aesDecrypt(string); String picView = aesDecrypt(string);
list.add(new Vod(href, name, pic)); list.add(new Vod(href, name, picView));
} }
return Result.string(classes, list); return Result.string(classes, list);
} }
@@ -113,10 +113,9 @@ public class CaoLiu extends Spider {
@Override @Override
public String categoryContent(String tid, String pg, boolean filter, HashMap<String, String> extend) throws Exception { public String categoryContent(String tid, String pg, boolean filter, HashMap<String, String> extend) throws Exception {
String target = cateUrl + tid + "&page=" + pg; String target = cateUrl + tid + "&page=" + pg;
Document doc; Document doc = Jsoup.parse(OkHttp.string(target, getCookie()));
// 只有图片模版 // 只有图片模版
if (tid == "57") { if (tid == "57") {
doc = Jsoup.parse(OkHttp.string(target, getCookie()));
List<Vod> list = parseHtml(doc); List<Vod> list = parseHtml(doc);
Integer total = (Integer.parseInt(pg) + 1) * 100; Integer total = (Integer.parseInt(pg) + 1) * 100;
return Result.string(Integer.parseInt(pg), Integer.parseInt(pg) + 1, 100, total, list); return Result.string(Integer.parseInt(pg), Integer.parseInt(pg) + 1, 100, total, list);
@@ -124,7 +123,6 @@ public class CaoLiu extends Spider {
List<Vod> list = new ArrayList<>(); List<Vod> list = new ArrayList<>();
// 图文结合模版 // 图文结合模版
if (tid == "47") { if (tid == "47") {
doc = Jsoup.parse(OkHttp.string(target, getCookie()));
for (Element element : doc.select("div.url_linkkarl")) { for (Element element : doc.select("div.url_linkkarl")) {
String pic = element.select("img").attr("data-aes"); String pic = element.select("img").attr("data-aes");
String href = element.attr("data-url").replace("read.php?tid=", "").split("&")[0]; String href = element.attr("data-url").replace("read.php?tid=", "").split("&")[0];
@@ -137,7 +135,6 @@ public class CaoLiu extends Spider {
} }
// 文字列表模版 // 文字列表模版
else { else {
doc = Jsoup.parse(OkHttp.string(target, getCookie()));
for (Element element : doc.select("td.tal")) { for (Element element : doc.select("td.tal")) {
String id = element.select("a").attr("href").replace("read.php?tid=", "").split("&")[0]; String id = element.select("a").attr("href").replace("read.php?tid=", "").split("&")[0];
String name = element.select("a").text(); String name = element.select("a").text();
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
902f1dda6d901c1b9f2a7eac051ebff3 91fae6f03d30415f595878a344677a2a