mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
@@ -3,6 +3,10 @@ const he = require('he');
|
|||||||
module.exports = async (ctx, next) => {
|
module.exports = async (ctx, next) => {
|
||||||
await next();
|
await next();
|
||||||
|
|
||||||
|
if (ctx.state.data && ctx.state.data.item.length === 0) {
|
||||||
|
throw Error('该路由目前获取内容为空,请检查源站情况或前往https://github.com/DIYgod/RSSHub/issues反馈该问题');
|
||||||
|
}
|
||||||
|
|
||||||
// decode HTML entities
|
// decode HTML entities
|
||||||
if (ctx.state.data) {
|
if (ctx.state.data) {
|
||||||
ctx.state.data.title && (ctx.state.data.title = he.decode(ctx.state.data.title + ''));
|
ctx.state.data.title && (ctx.state.data.title = he.decode(ctx.state.data.title + ''));
|
||||||
|
|||||||
Reference in New Issue
Block a user