From 975074a4e17483007a979c74ef0dda0c1ffcb4f8 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 27 May 2023 21:31:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyAliPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyAliPublic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SrcJyAliPublic.js b/SrcJyAliPublic.js index 679e27f5..40c716d1 100644 --- a/SrcJyAliPublic.js +++ b/SrcJyAliPublic.js @@ -128,9 +128,10 @@ function getSubtitle(share_id,sub_file_id,share_pwd){ headers["x-share-token"] = sharetoken; let data = {"expire_sec":600,"file_id":sub_file_id,"share_id":share_id}; let downurl = JSON.parse(request("https://api.aliyundrive.com/v2/file/get_share_link_download_url", { headers: headers, body: data, timeout: 3000 })).download_url; + log(downurl); let subfile = 'hiker://files/_cache/subtitles/'+sub_file_id+'.srt'; downloadFile(downurl, subfile, {"referer": "https://www.aliyundrive.com/"}) - if(!fileExist(subfile)){ + if(fileExist(subfile)){ return getPath(subfile); }else{ return "";