Fix ying pic

This commit is contained in:
FongMi 2023-04-10 16:11:49 +08:00
parent 6e109d0c1f
commit 5328b0886a
5 changed files with 7 additions and 7 deletions

View File

@ -75,7 +75,7 @@ public class Ying extends Spider {
for (Element element : doc2.select("div.lpic > ul > li")) {
String id = element.select("a").attr("href").split("/")[2];
String name = element.select("h2").text();
String pic = "https:".concat(element.select("a > img").attr("src"));
String pic = element.select("a > img").attr("src");
String remarks = element.select("span > font").text();
remarks = remarks.contains(":") ? remarks.split(" ")[1] : remarks;
list.add(new Vod(id, name, pic, remarks));
@ -101,7 +101,7 @@ public class Ying extends Spider {
for (Element element : doc.select("div.lpic > ul > li")) {
String id = element.select("a").attr("href").split("/")[2];
String name = element.select("h2").text();
String pic = "https:".concat(element.select("a > img").attr("src"));
String pic = element.select("a > img").attr("src");
String remarks = element.select("span > font").text();
remarks = remarks.contains(":") ? remarks.split(" ")[1] : remarks;
list.add(new Vod(id, name, pic, remarks));
@ -113,7 +113,7 @@ public class Ying extends Spider {
public String detailContent(List<String> ids) {
Document doc = Jsoup.parse(OkHttp.string(showUrl.concat(ids.get(0)), getHeaders()));
String name = doc.select("div.rate > h1").text();
String pic = "https:".concat(doc.select("div.thumb > img").attr("src"));
String pic = doc.select("div.thumb > img").attr("src");
String content = doc.select("div.info").text();
Elements element = doc.select("div.sinfo > span > a");
@ -157,7 +157,7 @@ public class Ying extends Spider {
for (Element element : doc.select("div.lpic > ul > li")) {
String id = element.select("a").attr("href").split("/")[2];
String name = element.select("h2").text();
String pic = "https:".concat(element.select("a > img").attr("src"));
String pic = element.select("a > img").attr("src");
String remarks = element.select("span > font").text();
remarks = remarks.contains(":") ? remarks.split(" ")[1] : remarks;
list.add(new Vod(id, name, pic, remarks));

Binary file not shown.

View File

@ -1 +1 @@
5b77e550fc0e997d1c7ec4dc9eca695a
78c395c04b5a9e444afbeec1b1681196

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;5b77e550fc0e997d1c7ec4dc9eca695a",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;78c395c04b5a9e444afbeec1b1681196",
"wallpaper": "https://gao.chuqiuyu.tk",
"sites": [
{

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;5b77e550fc0e997d1c7ec4dc9eca695a",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;78c395c04b5a9e444afbeec1b1681196",
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
"sites": [
{