diff --git a/app/src/main/java/com/github/catvod/spider/PanSou.java b/app/src/main/java/com/github/catvod/spider/PanSou.java index 71b702be..fb35b1e5 100644 --- a/app/src/main/java/com/github/catvod/spider/PanSou.java +++ b/app/src/main/java/com/github/catvod/spider/PanSou.java @@ -31,6 +31,12 @@ public class PanSou extends Ali { return headers; } + private Map getHeader() { + HashMap header = new HashMap<>(); + header.put("User-Agent", Utils.CHROME); + return header; + } + @Override public String detailContent(List ids) throws Exception { if (pattern.matcher(ids.get(0)).find()) return super.detailContent(ids); @@ -51,7 +57,7 @@ public class PanSou extends Ali { private String searchContent(String key, String pg) { String url = siteUrl + "/search?k=" + URLEncoder.encode(key) + "&page=" + pg + "&s=0&t=-1"; - Elements items = Jsoup.parse(OkHttp.string(url)).select("van-row > a"); + Elements items = Jsoup.parse(OkHttp.string(url, getHeader())).select("van-row > a"); List list = new ArrayList<>(); for (Element item : items) { String title = item.selectFirst("template").text().trim(); diff --git a/app/src/main/java/com/github/catvod/spider/Zhaozy.java b/app/src/main/java/com/github/catvod/spider/Zhaozy.java index 50d75327..96585baa 100644 --- a/app/src/main/java/com/github/catvod/spider/Zhaozy.java +++ b/app/src/main/java/com/github/catvod/spider/Zhaozy.java @@ -68,7 +68,7 @@ public class Zhaozy extends Ali { @Override public String searchContent(String key, boolean quick) throws Exception { - String url = siteUrl + "sok?filename=" + URLEncoder.encode(key); + String url = siteUrl + "so?filename=" + URLEncoder.encode(key); Document doc = Jsoup.parse(OkHttp.string(url, getHeader())); List list = new ArrayList<>(); for (Element element : doc.select("div.li_con div.news_text")) { diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 137f8756..660489d9 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index c6d1ed28..fc29e80b 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -8aa91b90065d8517ba322655bdd2127b +2ea1762a8c802608c2222c7051709afc diff --git a/json/adult.json b/json/adult.json index ad87ecc6..e808080c 100644 --- a/json/adult.json +++ b/json/adult.json @@ -1,5 +1,5 @@ { - "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8aa91b90065d8517ba322655bdd2127b", + "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;2ea1762a8c802608c2222c7051709afc", "wallpaper": "https://gao.chuqiuyu.tk", "sites": [ { diff --git a/json/config.json b/json/config.json index 0a6e39a4..082b21a4 100644 --- a/json/config.json +++ b/json/config.json @@ -1,5 +1,5 @@ { - "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8aa91b90065d8517ba322655bdd2127b", + "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;2ea1762a8c802608c2222c7051709afc", "wallpaper": "http://饭太硬.top/深色壁纸/api.php", "sites": [ { @@ -382,9 +382,19 @@ "8.1748", "10.0099", "10.3333", + "10.8565", "16.0599" ] }, + { + "name": "索尼", + "hosts": [ + "suonizy" + ], + "regex": [ + "15.1666" + ] + }, { "name": "暴風", "hosts": [