diff --git a/app/src/main/java/com/github/catvod/spider/Ali.java b/app/src/main/java/com/github/catvod/spider/Ali.java index 828beec4..5652a59b 100644 --- a/app/src/main/java/com/github/catvod/spider/Ali.java +++ b/app/src/main/java/com/github/catvod/spider/Ali.java @@ -41,6 +41,7 @@ import java.util.regex.Pattern; public class Ali { public static final Pattern pattern = Pattern.compile("www.aliyundrive.com/s/([^/]+)(/folder/([^/]+))?"); + private static final String QRCODE = "https://token.cooluc.com/"; private ScheduledExecutorService service; private final Auth auth; @@ -100,7 +101,8 @@ public class Ali { if (!matcher.find()) return ""; String shareId = matcher.group(1); String fileId = matcher.groupCount() == 3 ? matcher.group(3) : ""; - auth.setShareId(shareId); refreshShareToken(); + auth.setShareId(shareId); + refreshShareToken(); return Result.string(getVod(url, fileId)); } @@ -310,14 +312,14 @@ public class Ali { private void getQRCode() { HashMap headers = new HashMap<>(); headers.put("User-Agent", Misc.CHROME); - Data data = Data.objectFrom(OkHttp.string("https://token.cooluc.com/qr", headers)); + Data data = Data.objectFrom(OkHttp.string(QRCODE + "qr", headers)); if (data != null) Init.run(() -> showCode(data)); service = Executors.newScheduledThreadPool(1); if (data != null) service.scheduleAtFixedRate(() -> { JsonObject params = new JsonObject(); params.addProperty("t", data.getData().getT()); params.addProperty("ck", data.getData().getCk()); - Data result = Data.objectFrom(OkHttp.postJson("https://easy-token.cooluc.com/ck", params.toString(), headers)); + Data result = Data.objectFrom(OkHttp.postJson(QRCODE + "ck", params.toString(), headers)); if (result.hasToken()) setToken(result.getData().getRefreshToken()); }, 1, 1, TimeUnit.SECONDS); } diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 85b17744..4244dfa2 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 e1ab4803..1c8ecd1c 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -e5b681f675bb3bde7f94196f60235829 +8442882c682a5045ef214f42540ab28d diff --git a/json/adult.json b/json/adult.json index 5202bafd..2f18ab6b 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;e5b681f675bb3bde7f94196f60235829", + "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8442882c682a5045ef214f42540ab28d", "wallpaper": "https://gao.chuqiuyu.tk", "lives": [ { diff --git a/json/config.json b/json/config.json index 90e1f999..b672fe30 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;e5b681f675bb3bde7f94196f60235829", + "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8442882c682a5045ef214f42540ab28d", "wallpaper": "http://www.kf666888.cn/api/tvbox/img", "lives": [ {