fix: /rsshub/rss title

This commit is contained in:
DIYgod 2019-09-26 14:27:37 +08:00
parent b508e30941
commit ac008efe96
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 1 additions and 1 deletions

View File

@ -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()