|
|
|
@ -231,10 +231,10 @@ function alistUrl(api,path,pwd,sign,subtitles) { |
|
|
|
|
let url = encodeURI(api + "/d"+ path) + "?sign=" + sign; |
|
|
|
|
if(contain.test(path)){ |
|
|
|
|
try{ |
|
|
|
|
//let json = JSON.parse(gethtml(api + "/api/fs/get", path, pwd));
|
|
|
|
|
//if(json.code==200){
|
|
|
|
|
//let playurl = json.data.raw_url + (/\.mp3|\.m4a|\.wav|\.flac/.test(path)?"#isMusic=true#":"#isVideo=true#");
|
|
|
|
|
let playurl = url + (/\.mp3|\.m4a|\.wav|\.flac/.test(path)?"#isMusic=true#":"#isVideo=true#"); |
|
|
|
|
let json = JSON.parse(gethtml(api + "/api/fs/get", path, pwd)); |
|
|
|
|
if(json.code==200){ |
|
|
|
|
let playurl = json.data.raw_url + (/\.mp3|\.m4a|\.wav|\.flac/.test(path)?"#isMusic=true#":"#isVideo=true#"); |
|
|
|
|
//let playurl = url + (/\.mp3|\.m4a|\.wav|\.flac/.test(path)?"#isMusic=true#":"#isVideo=true#");
|
|
|
|
|
if(subtitles.length==0){ |
|
|
|
|
return playurl; |
|
|
|
|
}else{ |
|
|
|
@ -261,7 +261,7 @@ function alistUrl(api,path,pwd,sign,subtitles) { |
|
|
|
|
},playurl,url.match(/http(s)?:\/\/.*\//)[0]) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//}
|
|
|
|
|
} |
|
|
|
|
}catch(e){ } |
|
|
|
|
return url; |
|
|
|
|
}else if(/\.jpg|\.png|\.gif|\.bmp|\.ico|\.svg/.test(path)){ |
|
|
|
|