From 33e011aa4fcf276397be9431f848815ac4a251b4 Mon Sep 17 00:00:00 2001
From: src48597962 <48597962@qq.com>
Date: Fri, 17 Feb 2023 13:49:46 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyAlist.js'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SrcJyAlist.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/SrcJyAlist.js b/SrcJyAlist.js
index 81701c4c..5e668a4f 100644
--- a/SrcJyAlist.js
+++ b/SrcJyAlist.js
@@ -146,7 +146,7 @@ function alistList(alistapi){
addItemBefore(listid, arrayAdd(filelist,0,alistapi));
}
updateItem(listid, {
- title: fileFilter?"““””已开启文件过滤,仅显示白名单文件":""
+ title: fileFilter?"““””已开启文件过滤,仅显示音视频文件":""
});
}catch(e){
updateItem(listid, {
@@ -193,9 +193,8 @@ function alistUrl(api,path,pwd,sign) {
if(contain.test(path)){
try{
let json = JSON.parse(gethtml(api + "/api/fs/get", path, pwd));
- log(json);
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){
return api + "/d"+ path + "?sign=" + sign;