fix: rsshub/rss

This commit is contained in:
DIYgod
2019-05-13 03:46:52 +08:00
parent 293eeb623d
commit 20e07279a0

View File

@@ -20,7 +20,7 @@ module.exports = async (ctx) => {
const list = [];
all.forEach(({ item, type }) => {
item.forEach((item) => {
list.unshift({ item, type });
list.push({ item, type });
});
});
@@ -37,9 +37,9 @@ module.exports = async (ctx) => {
return {
title: `${titleEle[0].attribs.id} - ${item
.prevAll('h3')
.contents()
.eq(0)
.text()}`,
.text()
.slice(2)}`,
description: item.html(),
link: `https://docs.rsshub.app/${type}.html#${encodeURIComponent(
titleEle.find('.header-anchor').attr('href') &&