Update Miss.java
This commit is contained in:
parent
07c41a8879
commit
d2f4a8374a
|
|
@ -35,7 +35,7 @@ public class Miss extends Spider {
|
||||||
String typeId = a.attr("href").replace(url, "");
|
String typeId = a.attr("href").replace(url, "");
|
||||||
if (!typeIds.contains(typeId)) continue;
|
if (!typeIds.contains(typeId)) continue;
|
||||||
classes.add(new Class(typeId, typeName));
|
classes.add(new Class(typeId, typeName));
|
||||||
filters.put(typeId, List.of(new Filter("filters", "過濾", Arrays.asList(new Filter.Value("全部", ""), new Filter.Value("單人作品", "individual"), new Filter.Value("中文字幕", "chinese-subtitle")))));
|
filters.put(typeId, Arrays.asList(new Filter("filters", "過濾", Arrays.asList(new Filter.Value("全部", ""), new Filter.Value("單人作品", "individual"), new Filter.Value("中文字幕", "chinese-subtitle")))));
|
||||||
}
|
}
|
||||||
for (Element div : doc.select("div.thumbnail")) {
|
for (Element div : doc.select("div.thumbnail")) {
|
||||||
String id = div.select("a.text-secondary").attr("href").replace(url, "");
|
String id = div.select("a.text-secondary").attr("href").replace(url, "");
|
||||||
|
|
@ -61,6 +61,7 @@ public class Miss extends Spider {
|
||||||
String name = div.select("a.text-secondary").text();
|
String name = div.select("a.text-secondary").text();
|
||||||
String pic = div.select("img").attr("data-src");
|
String pic = div.select("img").attr("data-src");
|
||||||
if (pic.isEmpty()) pic = div.select("img").attr("src");
|
if (pic.isEmpty()) pic = div.select("img").attr("src");
|
||||||
|
if (TextUtils.isEmpty(name)) continue;
|
||||||
String remark = div.select("span").text();
|
String remark = div.select("span").text();
|
||||||
list.add(new Vod(id, name, pic, remark));
|
list.add(new Vod(id, name, pic, remark));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue