From 59d94fd23e4f8634d20eac1bfadd88becab13148 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 26 Feb 2023 10:30:13 +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, 3 insertions(+), 2 deletions(-) diff --git a/SrcJyAlist.js b/SrcJyAlist.js index 85a7efb8..27ca3bf4 100644 --- a/SrcJyAlist.js +++ b/SrcJyAlist.js @@ -667,10 +667,11 @@ function alistSearch(alistapi,key) { let list = pdfa(html,'body&&div&&a'); let dirlist = []; list.forEach(item => { + let txt = pdfh(item,"a&&href"); dirlist.push( { - "parent": pdfh(item,"a&&href"), - "name": pdfh(item,"a&&Text"), + "parent": txt.substring(0,txt.lastIndexOf("/")), + "name": txt.substring(txt.lastIndexOf('/')+1), "is_dir": true, "size": 0, "type": 1