From 89f408fb088f4ff3e6a4fa97690e8b63b7c08853 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 20 Nov 2022 21:12:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyCustomJk.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyCustomJk.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/SrcJyCustomJk.js b/SrcJyCustomJk.js index 45b29c65..bd5b4df3 100644 --- a/SrcJyCustomJk.js +++ b/SrcJyCustomJk.js @@ -43,10 +43,13 @@ let customparse = { let htmls = pdfa(doghtml, "body&&a"); log(htmls.length) htmls.forEach(it=>{ + /* let sitename = pdfh(it, "a&&li,1&&Text"); let vodname = pdfh(it, "a&&li,0&&Text"); let vodurl = pdfh(it, "a&&href"); lists.push({name:vodname,pic:dogpic,url:vodurl,site:sitename}) + */ + log(it) }) } }) @@ -74,12 +77,14 @@ let customparse = { id: item.url } }); - be(doglist, { - func: function(obj, id, error, taskResult) { - }, - param: { - } - }); + if(doglist.length>0){ + be(doglist, { + func: function(obj, id, error, taskResult) { + }, + param: { + } + }); + } return list; } }