|
|
|
@ -944,6 +944,10 @@ function getAliUrl(share_id, file_id, alitoken) { |
|
|
|
|
let urls = []; |
|
|
|
|
let names = []; |
|
|
|
|
let heads = []; |
|
|
|
|
|
|
|
|
|
let playUrlList = aliSharePlayUrl(share_id, file_id, alitoken) || []; |
|
|
|
|
if(playUrlList.length>0){ |
|
|
|
|
playUrlList.forEach((item) => { |
|
|
|
|
let u = startProxyServer($.toString((aliSharePlayUrl,share_id,alitoken) => { |
|
|
|
|
function geturl(fileid,line){ |
|
|
|
|
//预加载时会变file_id,所以ts过期更新时还取原来的id
|
|
|
|
@ -1016,10 +1020,6 @@ function getAliUrl(share_id, file_id, alitoken) { |
|
|
|
|
return ff; |
|
|
|
|
} |
|
|
|
|
},aliSharePlayUrl,share_id,alitoken)); |
|
|
|
|
|
|
|
|
|
let playUrlList = aliSharePlayUrl(share_id, file_id, alitoken) || []; |
|
|
|
|
if(playUrlList.length>0){ |
|
|
|
|
playUrlList.forEach((item) => { |
|
|
|
|
urls.push(u + "?url=" + base64Encode(item.url+"|"+file_id+"|"+item.template_id) + "#.m3u8#pre#"); |
|
|
|
|
names.push(transcoding[item.template_id] ? transcoding[item.template_id] : item.template_height); |
|
|
|
|
heads.push({ 'Referer': 'https://www.aliyundrive.com/' }); |
|
|
|
|