Update jar

This commit is contained in:
FongMi 2023-12-20 17:09:51 +08:00
parent 0fe44163fc
commit 043bd17e61
6 changed files with 15 additions and 7 deletions

View File

@ -28,6 +28,8 @@ public class Result {
private String format; private String format;
@SerializedName("danmaku") @SerializedName("danmaku")
private String danmaku; private String danmaku;
@SerializedName("msg")
private String msg;
@SerializedName("url") @SerializedName("url")
private Object url; private Object url;
@SerializedName("subs") @SerializedName("subs")
@ -85,6 +87,10 @@ public class Result {
return Result.get().vod(item).string(); return Result.get().vod(item).string();
} }
public static String error(String msg) {
return Result.get().vod(Collections.emptyList()).msg(msg).string();
}
public static Result get() { public static Result get() {
return new Result(); return new Result();
} }
@ -159,6 +165,11 @@ public class Result {
return this; return this;
} }
public Result msg(String msg) {
this.msg = msg;
return this;
}
public Result format(String format) { public Result format(String format) {
this.format = format; this.format = format;
return this; return this;

View File

@ -84,10 +84,7 @@ public class Kanqiu extends Spider {
@Override @Override
public String detailContent(List<String> ids) throws Exception { public String detailContent(List<String> ids) throws Exception {
if (ids.get(0).equals(siteUrl)) { if (ids.get(0).equals(siteUrl)) return Result.error("比賽尚未開始");
Notify.show("比赛尚未开始");
return Result.string(new Vod());
}
String content = OkHttp.string(ids.get(0) + "-url", getHeader()); String content = OkHttp.string(ids.get(0) + "-url", getHeader());
JSONArray linksArray = new JSONObject(content).getJSONArray("links"); JSONArray linksArray = new JSONObject(content).getJSONArray("links");
List<String> vodItems = new ArrayList<>(); List<String> vodItems = new ArrayList<>();

Binary file not shown.

View File

@ -1 +1 @@
d793cc92ea62550b731392d15bacb859 55c157414346e3ff571baad0a223bf15

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;d793cc92ea62550b731392d15bacb859", "spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;55c157414346e3ff571baad0a223bf15",
"wallpaper": "https://gao.chuqiuyu.workers.dev", "wallpaper": "https://gao.chuqiuyu.workers.dev",
"sites": [ "sites": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;d793cc92ea62550b731392d15bacb859", "spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;55c157414346e3ff571baad0a223bf15",
"wallpaper": "http://饭太硬.top/深色壁纸/api.php", "wallpaper": "http://饭太硬.top/深色壁纸/api.php",
"sites": [ "sites": [
{ {