From b89ce2d7dfd841570a46694bd6714e5389e1c366 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 21 Feb 2023 21:16:28 +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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SrcJyAlist.js b/SrcJyAlist.js index 2e97d8ec..5aad8df8 100644 --- a/SrcJyAlist.js +++ b/SrcJyAlist.js @@ -27,7 +27,8 @@ let datalist = alistData.drives || [ "server": "https://alist.ouo3.repl.co" } ]; -let fileFilter = 0; +let config = alistData.config || {}; +let fileFilter = config['fileFilter']==0?0:1; let contain = /\.mp4|\.avi|\.mkv|\.rmvb|\.flv|\.mov|\.ts|\.mp3|\.m4a|\.wma|\.flac/;//设置可显示的文件后缀 function gethtml(api,path,password) { @@ -104,7 +105,9 @@ function alistHome() { img: fileFilter?"https://lanmeiguojiang.com/tubiao/messy/55.svg":"https://lanmeiguojiang.com/tubiao/messy/56.svg", col_type: "icon_2" }); - + d.push({ + col_type: "line" + }); d.push({ title: '增加', url: $("","alist链接地址\n如:https://alist.abc.com").input((alistfile) => {