From 6c6755516897c3e7b3edc01d4faf87b6294870a9 Mon Sep 17 00:00:00 2001 From: mine <15122691092@163.com> Date: Wed, 30 Aug 2023 10:00:19 +0800 Subject: [PATCH] fix Zhaozy --- app/src/main/java/com/github/catvod/spider/Zhaozy.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 b286cee3..56195c09 100644 --- a/app/src/main/java/com/github/catvod/spider/Zhaozy.java +++ b/app/src/main/java/com/github/catvod/spider/Zhaozy.java @@ -24,7 +24,7 @@ public class Zhaozy extends Ali { private final Pattern regexAli = Pattern.compile("(https://www.aliyundrive.com/s/[^\"]+)"); private final Pattern regexVid = Pattern.compile("(\\S+)"); - private final String siteUrl = "https://zhaoziyuan.la/"; + private final String siteUrl = "https://zhaoziyuan.me/"; private String username; private String password; @@ -42,7 +42,7 @@ public class Zhaozy extends Ali { params.put("password", password); Map headers = new HashMap<>(); headers.put("User-Agent", Utils.CHROME); - headers.put("Referer", siteUrl + "login.html"); + headers.put("Referer", siteUrl + "stop.html"); headers.put("Origin", siteUrl); Map> resp = new HashMap<>(); OkHttp.post(siteUrl + "logiu.html", params, headers, resp); @@ -69,7 +69,7 @@ public class Zhaozy extends Ali { @Override public String searchContent(String key, boolean quick) throws Exception { - String url = siteUrl + "so?filename=" + URLEncoder.encode(key); + String url = siteUrl + "sox?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")) { @@ -88,4 +88,4 @@ public class Zhaozy extends Ali { } return Result.string(list); } -} \ No newline at end of file +}