Fix ying pic
This commit is contained in:
parent
be81f857f7
commit
22434c872d
|
|
@ -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.
|
|
@ -1 +1 @@
|
|||
5b77e550fc0e997d1c7ec4dc9eca695a
|
||||
78c395c04b5a9e444afbeec1b1681196
|
||||
|
|
|
|||
Loading…
Reference in New Issue