|
|
|
@ -178,11 +178,14 @@ 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; |
|
|
|
|
return downurl; |
|
|
|
|
/* |
|
|
|
|
let substr = fetch(downurl, {headers:{"referer": "https://www.aliyundrive.com/"},timeout:3000}); |
|
|
|
|
if(substr){ |
|
|
|
|
writeFile("hiker://files/cache/src/subtitles.srt",substr); |
|
|
|
|
return getPath("hiker://files/cache/src/subtitles.srt"); |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
}catch(e){ |
|
|
|
|
log('获取字幕失败>'+e.message); |
|
|
|
|
} |
|
|
|
|