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