From ac008efe96819db0662cd40887b37956ac9bd050 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 26 Sep 2019 14:27:37 +0800 Subject: [PATCH] fix: /rsshub/rss title --- lib/routes/rsshub/rss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/rsshub/rss.js b/lib/routes/rsshub/rss.js index 16eb65f91..2f8f36bec 100644 --- a/lib/routes/rsshub/rss.js +++ b/lib/routes/rsshub/rss.js @@ -55,7 +55,7 @@ module.exports = async (ctx) => { item.find('.header-anchor').remove(); const titleEle = item.prevAll('h2').eq(0); return { - title: `${titleEle[0].attribs.id} - ${item + title: `${titleEle.text().slice(2)} - ${item .prevAll('h3') .eq(0) .text()