From d84b365ea75f78f4cdbf18e522c82990c7db3730 Mon Sep 17 00:00:00 2001 From: junfengP <840282629@qq.com> Date: Sun, 12 May 2019 21:36:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BF=98=E8=AE=B0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=BC=AB=E7=94=BBdb=E7=9A=84title=20(#2108)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/manhuadb/comics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/routes/manhuadb/comics.js b/lib/routes/manhuadb/comics.js index 1249559278..c0b3e302b2 100644 --- a/lib/routes/manhuadb/comics.js +++ b/lib/routes/manhuadb/comics.js @@ -11,8 +11,9 @@ module.exports = async (ctx) => { const data = response.data; const $ = cheerio.load(data); const list = $('li[data-sort] > a'); + const comicTitle = $('.comic-title').text(); ctx.state.data = { - title: '漫画DB', + title: '漫画DB - ' + comicTitle, link: host, description: '漫画DB', item: list