This commit is contained in:
FongMi 2023-04-13 19:01:02 +08:00
parent 190aac767b
commit c1c04dd30a
7 changed files with 45 additions and 3 deletions

View File

@ -43,6 +43,10 @@ public class Result {
@SerializedName("total") @SerializedName("total")
private int total; private int total;
public static Result objectFrom(String str) {
return new Gson().fromJson(str, Result.class);
}
public static String string(List<Class> classes, List<Vod> list, LinkedHashMap<String, List<Filter>> filters) { public static String string(List<Class> classes, List<Vod> list, LinkedHashMap<String, List<Filter>> filters) {
return Result.get().classes(classes).vod(list).filters(filters).string(); return Result.get().classes(classes).vod(list).filters(filters).string();
} }

View File

@ -96,6 +96,10 @@ public class Vod {
this.vodContent = Trans.get(vodContent); this.vodContent = Trans.get(vodContent);
} }
public String getVodContent() {
return vodContent;
}
public void setVodPlayFrom(String vodPlayFrom) { public void setVodPlayFrom(String vodPlayFrom) {
this.vodPlayFrom = Trans.get(vodPlayFrom); this.vodPlayFrom = Trans.get(vodPlayFrom);
} }

View File

@ -0,0 +1,24 @@
package com.github.catvod.spider;
import android.content.Context;
import com.github.catvod.bean.Result;
import com.github.catvod.bean.Vod;
import com.github.catvod.net.OkHttp;
import java.net.URLEncoder;
public class Dovx extends Ali {
@Override
public void init(Context context, String extend) {
super.init(context, extend);
}
@Override
public String searchContent(String key, boolean quick) {
Result result = Result.objectFrom(OkHttp.string("https://api.dovx.tk/ali/search?wd=" + URLEncoder.encode(key)));
for (Vod vod : result.getList()) vod.setVodId(vod.getVodContent());
return result.string();
}
}

Binary file not shown.

View File

@ -1 +1 @@
130be941d3dc5eace206287935bd5ccd f2064f61914f9fe0258820ab04b5abce

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;130be941d3dc5eace206287935bd5ccd", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;f2064f61914f9fe0258820ab04b5abce",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"sites": [ "sites": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;130be941d3dc5eace206287935bd5ccd", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;f2064f61914f9fe0258820ab04b5abce",
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php", "wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
"sites": [ "sites": [
{ {
@ -78,6 +78,16 @@
"changeable": 0, "changeable": 0,
"ext": "影視天下第一" "ext": "影視天下第一"
}, },
{
"key": "七夜",
"name": "七夜",
"type": 3,
"api": "csp_Dovx",
"searchable": 1,
"filterable": 0,
"changeable": 0,
"ext": "影視天下第一"
},
{ {
"key": "易搜", "key": "易搜",
"name": "易搜", "name": "易搜",