diff --git a/app/src/main/java/com/github/catvod/ali/API.java b/app/src/main/java/com/github/catvod/ali/API.java index 773a5ac..81838fd 100644 --- a/app/src/main/java/com/github/catvod/ali/API.java +++ b/app/src/main/java/com/github/catvod/ali/API.java @@ -344,11 +344,14 @@ public class API { public String getDownloadUrl(String fileId) { try { + SpiderDebug.log("getDownloadUrl..." + fileId); tempIds.add(0, copy(fileId)); JSONObject body = new JSONObject(); body.put("file_id", tempIds.get(0)); body.put("drive_id", user.getDriveId()); - return new JSONObject(oauth("openFile/getDownloadUrl", body.toString(), true)).getString("url"); + String json = oauth("openFile/getDownloadUrl", body.toString(), true); + SpiderDebug.log(json); + return new JSONObject(json).getString("url"); } catch (Exception e) { Init.execute(this::deleteAll); e.printStackTrace(); @@ -360,6 +363,7 @@ public class API { public String getPreviewUrl(String fileId, String flag) { try { + SpiderDebug.log("getPreviewUrl..." + fileId); tempIds.add(0, copy(fileId)); JSONObject body = new JSONObject(); body.put("file_id", tempIds.get(0)); @@ -367,6 +371,7 @@ public class API { body.put("category", "live_transcoding"); body.put("url_expire_sec", "14400"); String json = oauth("openFile/getVideoPreviewPlayInfo", body.toString(), true); + SpiderDebug.log(json); JSONArray taskList = new JSONObject(json).getJSONObject("video_preview_play_info").getJSONArray("live_transcoding_task_list"); return getPreviewQuality(taskList, flag); } catch (Exception e) { diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index a43ee49..6014f32 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 e83d6dc..4cb750c 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -be7bb5c4900ed56f8cc189aeabf0a989 +b6ec08b3b229db2be16b5975104b7e56