Fix miss
This commit is contained in:
parent
a486889d64
commit
1bf068c4e7
|
|
@ -29,12 +29,12 @@ public class Miss extends Spider {
|
||||||
List<Class> classes = new ArrayList<>();
|
List<Class> classes = new ArrayList<>();
|
||||||
LinkedHashMap<String, List<Filter>> filters = new LinkedHashMap<>();
|
LinkedHashMap<String, List<Filter>> filters = new LinkedHashMap<>();
|
||||||
Document doc = Jsoup.parse(OkHttp.string(url));
|
Document doc = Jsoup.parse(OkHttp.string(url));
|
||||||
List<String> typeIds = Arrays.asList("chinese-subtitle", "new", "release", "uncensored-leak", "genres/VR", "today-hot", "weekly-hot", "monthly-hot", "siro", "luxu", "gana", "maan", "scute", "ara", "uncensored-leak", "fc2", "heyzo", "tokyohot", "1pondo", "caribbeancom", "caribbeancompr", "10musume", "pacopacomama", "gachinco", "xxxav", "marriedslash", "naughty4610", "naughty0930", "madou", "twav", "furuke");
|
for (Element a : doc.select("a.block.px-4.py-2.text-sm.leading-5.text-nord5.bg-nord3")) {
|
||||||
for (Element a : doc.select("nav a")) {
|
|
||||||
String typeId = a.attr("href").replace(url, "");
|
String typeId = a.attr("href").replace(url, "");
|
||||||
if (!typeIds.contains(typeId)) continue;
|
if (typeId.startsWith("dm") || typeId.contains("VR")) {
|
||||||
classes.add(new Class(typeId, a.text()));
|
classes.add(new Class(typeId, a.text()));
|
||||||
filters.put(typeId, Arrays.asList(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, "");
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
796038950e2224240f96e3ab74f0af96
|
ace730b5bcedce1ed4592dadd9092f39
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue