Fix doll class
This commit is contained in:
parent
8a5122c525
commit
84bcf7140e
|
|
@ -28,7 +28,7 @@ public class Doll extends Spider {
|
||||||
List<Class> classes = new ArrayList<>();
|
List<Class> classes = new ArrayList<>();
|
||||||
List<Vod> list = new ArrayList<>();
|
List<Vod> list = new ArrayList<>();
|
||||||
Document doc = Jsoup.parse(OkHttpUtil.string(url));
|
Document doc = Jsoup.parse(OkHttpUtil.string(url));
|
||||||
for (Element a : doc.select("ul#side-menu > li > a")) {
|
for (Element a : doc.select("ul#side-menu").get(0).select("li > a")) {
|
||||||
String typeName = a.text();
|
String typeName = a.text();
|
||||||
String typeId = a.attr("href").replace(url, "");
|
String typeId = a.attr("href").replace(url, "");
|
||||||
classes.add(new Class(typeId, typeName));
|
classes.add(new Class(typeId, typeName));
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
ba4abbb214c642e38dd0e284fd0e54fe
|
60d9f2609ee273810e12879202418f61
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue