diff --git a/lib/routes/dsndsht23/index.js b/lib/routes/dsndsht23/index.js index e71ec70b19..361e922c2c 100644 --- a/lib/routes/dsndsht23/index.js +++ b/lib/routes/dsndsht23/index.js @@ -97,7 +97,7 @@ module.exports = async (ctx) => { $(images[k]).replaceWith(``); } } - const description = (postMessage.html() || '原帖已被删除').replace(/ignore_js_op/g, 'div'); + const description = (postMessage.html() || '抓取原帖失败').replace(/ignore_js_op/g, 'div'); const enclosureUrl = postMessage.find('div.blockcode li').text(); const single = { @@ -108,7 +108,9 @@ module.exports = async (ctx) => { enclosure_url: enclosureUrl, enclosure_type: 'application/x-bittorrent', }; - ctx.cache.set(itemUrl, JSON.stringify(single)); + if (description !== '抓取原帖失败') { + ctx.cache.set(itemUrl, JSON.stringify(single)); + } return Promise.resolve(single); }) );