This commit is contained in:
唐三 2023-09-28 21:08:27 +08:00
parent ccf04e8e0d
commit 6c74ee1279
5 changed files with 11 additions and 7 deletions

View File

@ -9,6 +9,7 @@ import com.github.catvod.bean.Vod;
import com.github.catvod.crawler.Spider;
import com.github.catvod.net.OkHttp;
import com.github.catvod.utils.Utils;
import com.whl.quickjs.android.QuickJSLoader;
import com.whl.quickjs.wrapper.QuickJSContext;
import org.json.JSONObject;
@ -108,13 +109,16 @@ public class Miss extends Spider {
} else {
return Result.get().parse().url(url + id).string();
}
List<String> url = new ArrayList<>();
List<String> playUrl = new ArrayList<>();
for (Iterator<String> it = js.keys(); it.hasNext();) {
String key = it.next();
url.add(key);
url.add(js.getString(key));
playUrl.add(key);
playUrl.add(js.getString(key));
}
return Result.get().url(url).string();
Map<String, String> headers = new HashMap<>();
headers.put("User-Agent", Utils.CHROME);
headers.put("Referer", url + id);
return Result.get().url(playUrl).header(headers).string();
}
private String searchContent(String key, String pg) {

Binary file not shown.

View File

@ -1 +1 @@
f9f193baa3c745de189031c8204071b3
4f90ef7818edacb249076f30238d4305

View File

@ -1,5 +1,5 @@
{
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;f9f193baa3c745de189031c8204071b3",
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;4f90ef7818edacb249076f30238d4305",
"wallpaper": "https://gao.chuqiuyu.tk",
"sites": [
{

View File

@ -1,5 +1,5 @@
{
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;f9f193baa3c745de189031c8204071b3",
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;4f90ef7818edacb249076f30238d4305",
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
"sites": [
{