更新 'SrcJyAlist.js'

master
src48597962 2 years ago
parent 848499a326
commit 668e4db52a
  1. 10
      SrcJyAlist.js

@ -424,19 +424,23 @@ function alistUrl(alistapi,path,sign,subtitle,provider) {
names.push(transcoding[item.template_id]?transcoding[item.template_id]:item.template_height); names.push(transcoding[item.template_id]?transcoding[item.template_id]:item.template_height);
heads.push({'Referer':'https://www.aliyundrive.com/'}); heads.push({'Referer':'https://www.aliyundrive.com/'});
}) })
return JSON.stringify({ return {
urls: urls, urls: urls,
names: names, names: names,
headers: heads, headers: heads,
subtitle: subtitle subtitle: subtitle
}); };
} }
} }
}catch(e){ }catch(e){
log('获取共享链接播放地址失败>'+e.message); log('获取共享链接播放地址失败>'+e.message);
return {};
} }
} }
getAliUrl(url,alistconfig.alitoken,subtitle); let play = getAliUrl(url,alistconfig.alitoken,subtitle);
if(play.urls){
return JSON.stringify(play);
}
} }
url = url + (music.test(suffix)?"#isMusic=true#":"#isVideo=true#") + (url.indexOf('baidu.com')>-1? ';{User-Agent@Lavf/57.83.100}':''); url = url + (music.test(suffix)?"#isMusic=true#":"#isVideo=true#") + (url.indexOf('baidu.com')>-1? ';{User-Agent@Lavf/57.83.100}':'');
if(!subtitle){ if(!subtitle){

Loading…
Cancel
Save