This commit is contained in:
GH Action - Upstream Sync 2023-11-03 12:31:12 +00:00
commit d2afbc1d78
6 changed files with 21 additions and 5 deletions

View File

@ -31,6 +31,12 @@ public class PanSou extends Ali {
return headers;
}
private Map<String, String> getHeader() {
HashMap<String, String> header = new HashMap<>();
header.put("User-Agent", Utils.CHROME);
return header;
}
@Override
public String detailContent(List<String> 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<Vod> list = new ArrayList<>();
for (Element item : items) {
String title = item.selectFirst("template").text().trim();

View File

@ -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<Vod> list = new ArrayList<>();
for (Element element : doc.select("div.li_con div.news_text")) {

Binary file not shown.

View File

@ -1 +1 @@
8aa91b90065d8517ba322655bdd2127b
2ea1762a8c802608c2222c7051709afc

View File

@ -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": [
{

View File

@ -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": [