diff --git a/lib/middleware/parameter.js b/lib/middleware/parameter.js index 080f6aeb65..542ef8f391 100644 --- a/lib/middleware/parameter.js +++ b/lib/middleware/parameter.js @@ -3,7 +3,7 @@ const he = require('he'); module.exports = async (ctx, next) => { await next(); - if (ctx.state.data && (!ctx.state.data.item || ctx.state.data.item.length === 0)) { + if (ctx.state.data && (!ctx.state.data.item || ctx.state.data.item.length === 0) && !ctx.state.allowEmpty) { throw Error('this route is empty, please check the origin site or create an issue to feedback on https://github.com/DIYgod/RSSHub/issues/new/choose'); } diff --git a/lib/routes/appstore/price.js b/lib/routes/appstore/price.js index 12e757a0e7..fff8065664 100644 --- a/lib/routes/appstore/price.js +++ b/lib/routes/appstore/price.js @@ -49,4 +49,5 @@ module.exports = async (ctx) => { link, item, }; + ctx.state.allowEmpty = true; };