This commit is contained in:
GH Action - Upstream Sync 2023-08-06 12:27:06 +00:00
commit b9e3947168
5 changed files with 9 additions and 8 deletions

View File

@ -83,7 +83,7 @@ public class API {
tempIds = new ArrayList<>();
oauth = OAuth.objectFrom(FileUtil.read(getOAuthCache()));
user = User.objectFrom(FileUtil.read(getUserCache()));
drive = Drive.objectFrom(FileUtil.read(getUserCache()));
drive = Drive.objectFrom(FileUtil.read(getDriveCache()));
quality = new HashMap<>();
quality.put("4K", "UHD");
quality.put("2k", "QHD");
@ -227,11 +227,11 @@ public class API {
String result = auth("https://user.aliyundrive.com/v2/user/get", "{}", false);
drive = Drive.objectFrom(result).save();
driveId = drive.getResourceDriveId().isEmpty() ? drive.getDriveId() : drive.getResourceDriveId();
return true;
return false;
} catch (Exception e) {
e.printStackTrace();
drive.clean().save();
return false;
return true;
}
}
@ -376,7 +376,7 @@ public class API {
public String getDownloadUrl(String fileId) {
try {
SpiderDebug.log("getDownloadUrl..." + fileId);
if (!getDriveId()) throw new Exception("unable obtain drive id");
if (getDriveId()) throw new Exception("unable obtain drive id");
tempIds.add(0, copy(fileId));
JSONObject body = new JSONObject();
body.put("file_id", tempIds.get(0));
@ -394,7 +394,7 @@ public class API {
public JSONObject getVideoPreviewPlayInfo(String fileId) {
try {
SpiderDebug.log("getVideoPreviewPlayInfo..." + fileId);
if (!getDriveId()) throw new Exception("unable obtain drive id");
if (getDriveId()) throw new Exception("unable obtain drive id");
tempIds.add(0, copy(fileId));
JSONObject body = new JSONObject();
body.put("file_id", tempIds.get(0));

Binary file not shown.

View File

@ -1 +1 @@
dc65fa8fabc0fba297b0dd6000af50be
1330f8422b05c560a0f1eba33e81e3c2

View File

@ -1,5 +1,5 @@
{
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;dc65fa8fabc0fba297b0dd6000af50be",
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;1330f8422b05c560a0f1eba33e81e3c2",
"wallpaper": "https://gao.chuqiuyu.tk",
"sites": [
{

View File

@ -1,5 +1,5 @@
{
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;dc65fa8fabc0fba297b0dd6000af50be",
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;1330f8422b05c560a0f1eba33e81e3c2",
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
"sites": [
{
@ -35,6 +35,7 @@
"api": "csp_Bili",
"searchable": 1,
"changeable": 0,
"viewType": 1,
"ext": {
"type": "帕梅拉#太极拳#广场舞#演唱会",
"cookie": ""