Add Dovx
This commit is contained in:
parent
190aac767b
commit
c1c04dd30a
|
|
@ -43,6 +43,10 @@ public class Result {
|
|||
@SerializedName("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) {
|
||||
return Result.get().classes(classes).vod(list).filters(filters).string();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,6 +96,10 @@ public class Vod {
|
|||
this.vodContent = Trans.get(vodContent);
|
||||
}
|
||||
|
||||
public String getVodContent() {
|
||||
return vodContent;
|
||||
}
|
||||
|
||||
public void setVodPlayFrom(String vodPlayFrom) {
|
||||
this.vodPlayFrom = Trans.get(vodPlayFrom);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
|
@ -1 +1 @@
|
|||
130be941d3dc5eace206287935bd5ccd
|
||||
f2064f61914f9fe0258820ab04b5abce
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
"sites": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
"sites": [
|
||||
{
|
||||
|
|
@ -78,6 +78,16 @@
|
|||
"changeable": 0,
|
||||
"ext": "影視天下第一"
|
||||
},
|
||||
{
|
||||
"key": "七夜",
|
||||
"name": "七夜",
|
||||
"type": 3,
|
||||
"api": "csp_Dovx",
|
||||
"searchable": 1,
|
||||
"filterable": 0,
|
||||
"changeable": 0,
|
||||
"ext": "影視天下第一"
|
||||
},
|
||||
{
|
||||
"key": "易搜",
|
||||
"name": "易搜",
|
||||
|
|
|
|||
Loading…
Reference in New Issue