Update Ali.java
This commit is contained in:
parent
6f59cd55eb
commit
39872860bd
|
|
@ -36,13 +36,10 @@ public class Ali 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("\\+");
|
|
||||||
API.get().checkAccessToken();
|
API.get().checkAccessToken();
|
||||||
if (flag.equals("原畫")) {
|
String[] ids = id.split("\\+");
|
||||||
return Result.get().url(API.get().getDownloadUrl(ids[0])).subs(API.get().getSub(ids)).header(API.get().getHeader()).parse(0).string();
|
String url = flag.equals("原畫") ? API.get().getDownloadUrl(ids[0]) : API.get().getPreviewUrl(ids[0], flag);
|
||||||
} else {
|
return Result.get().url(url).subs(API.get().getSub(ids)).header(API.get().getHeader()).parse(0).string();
|
||||||
return Result.get().url(API.get().getPreviewUrl(ids[0], flag)).subs(API.get().getSub(ids)).header(API.get().getHeader()).parse(0).string();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Object[] vod(Map<String, String> params) {
|
public static Object[] vod(Map<String, String> params) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue