From 7a06c9eaaf2c8b5ba8d92c66fb1d598d4bdca77d Mon Sep 17 00:00:00 2001 From: nczitzk Date: Wed, 13 Jan 2021 10:53:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=93=94=E5=98=80=E5=BD=B1=E8=A7=86?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=9C=80=E6=96=B0=20BT=20/=20=E7=A3=81?= =?UTF-8?q?=E5=8A=9B=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/bde4/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/bde4/index.js b/lib/routes/bde4/index.js index f7533d3cb..217725087 100644 --- a/lib/routes/bde4/index.js +++ b/lib/routes/bde4/index.js @@ -61,7 +61,7 @@ module.exports = async (ctx) => { const torrents = content('#download-wrapper').nextAll('.list').eq(0); item.description = content('.info0').html() + `
下载地址:${downloadLinks}
` + `${torrents.html() ? `
种子列表:${torrents.html()}
` : ''}`; - item.enclosure_url = torrents.html() ? torrents.find('a.header').eq(0).attr('href') : downloadResponse.data.pop().url; + item.enclosure_url = torrents.html() ? torrents.find('a.header').last().attr('href') : downloadResponse.data.pop().url; item.enclosure_type = 'application/x-bittorrent'; return item;