mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: /rsshub/rss title
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = async (ctx) => {
|
|||||||
item.find('.header-anchor').remove();
|
item.find('.header-anchor').remove();
|
||||||
const titleEle = item.prevAll('h2').eq(0);
|
const titleEle = item.prevAll('h2').eq(0);
|
||||||
return {
|
return {
|
||||||
title: `${titleEle[0].attribs.id} - ${item
|
title: `${titleEle.text().slice(2)} - ${item
|
||||||
.prevAll('h3')
|
.prevAll('h3')
|
||||||
.eq(0)
|
.eq(0)
|
||||||
.text()
|
.text()
|
||||||
|
|||||||
Reference in New Issue
Block a user