Merge branch 'main' of https://github.com/FongMi/CatVodSpider
This commit is contained in:
commit
586927a293
|
|
@ -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": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
"drives": [
|
"drives": [
|
||||||
{
|
{
|
||||||
"name": "小雅",
|
"name": "小雅",
|
||||||
"server": "http://alist.xiaoya.pro",
|
"server": "http://alist.xiaoya.pro"
|
||||||
"search": false
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "觸光",
|
"name": "觸光",
|
||||||
|
|
@ -29,7 +28,8 @@
|
||||||
{
|
{
|
||||||
"name": "範本",
|
"name": "範本",
|
||||||
"server": "https://one.fongmi.com",
|
"server": "https://one.fongmi.com",
|
||||||
"hidden": true,
|
"search": true,
|
||||||
|
"hidden": false,
|
||||||
"login": {
|
"login": {
|
||||||
"username": "fongmi",
|
"username": "fongmi",
|
||||||
"password": "fongmi"
|
"password": "fongmi"
|
||||||
|
|
|
||||||
|
|
@ -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