From 9deec8f4526666921f7905857dbf3dac93ff2688 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 20 Nov 2022 20:58:02 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SrcJyCustomJk.js b/SrcJyCustomJk.js index 07b8a45c..b65713d4 100644 --- a/SrcJyCustomJk.js +++ b/SrcJyCustomJk.js @@ -41,12 +41,12 @@ let customparse = { }; let doghtml = request('https://www.dianyinggou.com/SpiderMovie/zy/' + dogname, {headers: headers}); let htmls = pdfa(doghtml, "body&&a"); - htmls.forEach(item=>{ - let sitename = pdfh(item, "body&&li,1&&Text"); - let vodname = pdfh(item, "body&&li,0&&Text"); - let vodurl = pdfh(item, "body&&href"); + for(let i in htmls){ + let sitename = pdfh(htmls[i], "body&&li,1&&Text"); + let vodname = pdfh(htmls[i], "body&&li,0&&Text"); + let vodurl = pdfh(htmls[i], "body&&href"); lists.push({name:vodname,pic:dogpic,url:vodurl,site:sitename}) - }) + } } }) log(lists);