更新 'SrcJyAlist.js'

master
src48597962 2 years ago
parent 3e6feaecc1
commit 33e011aa4f
  1. 5
      SrcJyAlist.js

@ -146,7 +146,7 @@ function alistList(alistapi){
addItemBefore(listid, arrayAdd(filelist,0,alistapi)); addItemBefore(listid, arrayAdd(filelist,0,alistapi));
} }
updateItem(listid, { updateItem(listid, {
title: fileFilter?"““””<small><font color=#f20c00>已开启文件过滤,仅显示白名单文件</font></small>":"" title: fileFilter?"““””<small><font color=#f20c00>已开启文件过滤,仅显示音视频文件</font></small>":""
}); });
}catch(e){ }catch(e){
updateItem(listid, { updateItem(listid, {
@ -193,9 +193,8 @@ function alistUrl(api,path,pwd,sign) {
if(contain.test(path)){ if(contain.test(path)){
try{ try{
let json = JSON.parse(gethtml(api + "/api/fs/get", path, pwd)); let json = JSON.parse(gethtml(api + "/api/fs/get", path, pwd));
log(json);
if(json.code==200){ if(json.code==200){
return json.data.raw_url;// + (/\.mp3|\.m4a|\.wav/.test(json.data.raw_url)?"#isMusic=true#":"#isVideo=true#"); return json.data.raw_url + (/\.mp3|\.m4a|\.wav/.test(path)?"#isMusic=true#":"#isVideo=true#");
} }
}catch(e){ }catch(e){
return api + "/d"+ path + "?sign=" + sign; return api + "/d"+ path + "?sign=" + sign;

Loading…
Cancel
Save