Update ali
This commit is contained in:
parent
53d926050e
commit
f5d6b9a285
|
|
@ -1,5 +1,7 @@
|
||||||
package com.github.catvod.bean;
|
package com.github.catvod.bean;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
|
@ -26,8 +28,8 @@ public class Result {
|
||||||
private String header;
|
private String header;
|
||||||
@SerializedName("url")
|
@SerializedName("url")
|
||||||
private String url;
|
private String url;
|
||||||
@SerializedName("sub")
|
@SerializedName("subs")
|
||||||
private List<Sub> sub;
|
private List<Sub> subs;
|
||||||
@SerializedName("parse")
|
@SerializedName("parse")
|
||||||
private int parse;
|
private int parse;
|
||||||
@SerializedName("jx")
|
@SerializedName("jx")
|
||||||
|
|
@ -129,8 +131,8 @@ public class Result {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Result sub(List<Sub> sub) {
|
public Result subs(List<Sub> subs) {
|
||||||
this.sub = sub;
|
this.subs = subs;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -154,6 +156,7 @@ public class Result {
|
||||||
return toString();
|
return toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new Gson().toJson(this);
|
return new Gson().toJson(this);
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ public class AList extends Spider {
|
||||||
@Override
|
@Override
|
||||||
public String playerContent(String flag, String id, List<String> vipFlags) {
|
public String playerContent(String flag, String id, List<String> vipFlags) {
|
||||||
String[] ids = id.split("~~~");
|
String[] ids = id.split("~~~");
|
||||||
return Result.get().url(getDetail(ids[0]).getUrl()).sub(getSub(ids)).string();
|
return Result.get().url(getDetail(ids[0]).getUrl()).subs(getSub(ids)).string();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Item getDetail(String id) {
|
private Item getDetail(String id) {
|
||||||
|
|
|
||||||
|
|
@ -99,9 +99,9 @@ public class Ali {
|
||||||
String[] ids = id.split("\\+");
|
String[] ids = id.split("\\+");
|
||||||
if (auth.isEmpty()) refreshAccessToken();
|
if (auth.isEmpty()) refreshAccessToken();
|
||||||
if (flag.equals("原畫")) {
|
if (flag.equals("原畫")) {
|
||||||
return Result.get().url(getDownloadUrl(ids[0])).sub(getSub(ids)).header(getHeaders()).string();
|
return Result.get().url(getDownloadUrl(ids[0])).subs(getSub(ids)).header(getHeaders()).string();
|
||||||
} else {
|
} else {
|
||||||
return Result.get().url(getPreviewUrl(ids[0])).sub(getSub(ids)).header(getHeaders()).string();
|
return Result.get().url(getPreviewUrl(ids[0])).subs(getSub(ids)).header(getHeaders()).string();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
0c652bdac4683c84e151f867dd3abe54
|
462dc3df9ddfcbb3c1933c172f634f7c
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue