From 41daa4c2bcbf411c125a7df9c8f5c2f743db08fa Mon Sep 17 00:00:00 2001 From: codeeer Date: Sun, 8 Dec 2019 02:39:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=89=87=E6=BA=90?= =?UTF-8?q?=E7=BD=91=20title=20=E5=B1=95=E7=A4=BA=20(#3541)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/pianyuan/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/routes/pianyuan/app.js b/lib/routes/pianyuan/app.js index 9f4aec3cd..e7cc2fef4 100644 --- a/lib/routes/pianyuan/app.js +++ b/lib/routes/pianyuan/app.js @@ -37,9 +37,11 @@ module.exports = async (ctx) => { .find('td:nth-child(2)') .text(); + const description_simple = description.substr(0, description.indexOf('主演')).replace(text, ''); + items.push({ - title: `[${size}] ${text}`, - description: description, + title: `[${size}] ${description_simple}`, + description: `${description}`, link: link_base + link, }); });