From 35afd7ad2ad020a149b3a915fa7672e015fec240 Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Thu, 21 Jan 2021 07:30:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=93=94=E6=BB=B4=E5=BD=B1=E8=A7=86?= =?UTF-8?q?=E4=BC=98=E5=85=88=E8=BF=94=E5=9B=9E=E7=A7=8D=E5=AD=90=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=20(#6735)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/bde4/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/bde4/index.js b/lib/routes/bde4/index.js index 217725087..99fa24550 100644 --- a/lib/routes/bde4/index.js +++ b/lib/routes/bde4/index.js @@ -55,10 +55,10 @@ module.exports = async (ctx) => { let downloadLinks = ''; for (const downloadLink of downloadResponse.data) { - downloadLinks += `
${downloadLink.downloadCategory.name}: ${downloadLink.url}
`; + downloadLinks += `
${downloadLink.downloadCategory.name}: ${downloadLink.url}
`; } - const torrents = content('#download-wrapper').nextAll('.list').eq(0); + const torrents = content('#torrent-list .list'); item.description = content('.info0').html() + `
下载地址:${downloadLinks}
` + `${torrents.html() ? `
种子列表:${torrents.html()}
` : ''}`; item.enclosure_url = torrents.html() ? torrents.find('a.header').last().attr('href') : downloadResponse.data.pop().url;