From a359c85c46c018c40d23a0a817312b94c1c5730d Mon Sep 17 00:00:00 2001 From: wolfyu1991 Date: Mon, 5 Aug 2019 11:13:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mp4ba=20=E8=8E=B7=E5=8F=96=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E7=A3=81=E5=8A=9B=E9=93=BE=E6=8E=A5=E7=9A=84BUG?= =?UTF-8?q?=EF=BC=9B=E6=AD=A3=E6=96=87=E4=B8=AD=E6=B7=BB=E5=8A=A0=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=93=BE=E6=8E=A5=E4=B8=8E=E7=BD=91=E7=9B=98=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=20(#2766)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/mp4ba/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/routes/mp4ba/index.js b/lib/routes/mp4ba/index.js index 4f5f7852d3..3c64997f6c 100644 --- a/lib/routes/mp4ba/index.js +++ b/lib/routes/mp4ba/index.js @@ -97,12 +97,12 @@ async function buildRss($, paramType, ctx) { } else { const pageData = (await got.get(pageUrl)).data; const $page = cheerio.load(pageData); - $magnet = $page('.content .article .box') - .find('.download') - .find('a[href^="magnet:?xt=urn:btih:"]'); - description = $page('.content .article .box') - .find('.info_con') - .html(); + const downloadAll = $page('#fadecon > .dow_con:nth-child(1)'); + const downloadBd = $page('#fadecon > .dow_con:nth-child(4)'); + const info_detail = $page('.content .article .box .info_con').find('.info_detail'); + const ar_banner = $page('.content .article .box .info_con').find('.ar_banner'); + $magnet = downloadAll.find('a[href^="magnet:?xt=urn:btih:"]'); + description = info_detail.html() + ar_banner.html() + downloadAll.html() + downloadBd.html(); cache.set(key, description); } }