Doll support search
This commit is contained in:
parent
372c2a9bcb
commit
4c3604e608
|
|
@ -100,4 +100,27 @@ public class Doll extends Spider {
|
||||||
String playUrl = URLDecoder.decode(new String(Base64.decode(code.toString(), 0)));
|
String playUrl = URLDecoder.decode(new String(Base64.decode(code.toString(), 0)));
|
||||||
return Result.get().url(playUrl).string();
|
return Result.get().url(playUrl).string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String searchContent(String key, boolean quick) throws Exception {
|
||||||
|
return searchContent("search/" + key);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String searchContent(String key, boolean quick, String pg) throws Exception {
|
||||||
|
return searchContent("search/" + key + "/" + pg + ".html");
|
||||||
|
}
|
||||||
|
|
||||||
|
private String searchContent(String query) {
|
||||||
|
List<Vod> list = new ArrayList<>();
|
||||||
|
Document doc = Jsoup.parse(OkHttp.string(url + query));
|
||||||
|
for (Element div : doc.select("div.video-detail")) {
|
||||||
|
String id = div.select("h3.video-title > a").attr("href").replace(url, "");
|
||||||
|
String name = div.select("h3.video-title > a").text();
|
||||||
|
String pic = url + div.select("div.thumb > a > img").attr("data-src");
|
||||||
|
String remark = div.select("div.date").text();
|
||||||
|
list.add(new Vod(id, name, pic, remark));
|
||||||
|
}
|
||||||
|
return Result.string(list);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
af5a163bf0ba899be92c5f44f3dde1d8
|
46123fcad7dc9ca913203f4d756d6abc
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;af5a163bf0ba899be92c5f44f3dde1d8",
|
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;46123fcad7dc9ca913203f4d756d6abc",
|
||||||
"wallpaper": "https://gao.chuqiuyu.tk",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;af5a163bf0ba899be92c5f44f3dde1d8",
|
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;46123fcad7dc9ca913203f4d756d6abc",
|
||||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue