From 1fea735dc351a69cb22421ebf24e875e32e7a524 Mon Sep 17 00:00:00 2001 From: Chenyang Shi Date: Tue, 19 Feb 2019 11:52:33 +0800 Subject: [PATCH] fix douban 404 (#1566) close #1564 --- lib/routes/douban/explore_column.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/routes/douban/explore_column.js b/lib/routes/douban/explore_column.js index eaf2a9362..dab9b2c00 100644 --- a/lib/routes/douban/explore_column.js +++ b/lib/routes/douban/explore_column.js @@ -28,6 +28,12 @@ module.exports = async (ctx) => { }) .get(); + for (let i = list.length - 1; i >= 0; i--) { + if (list[i].author === '[已注销]') { + list.splice(i, 1); + } + } + const out = await Promise.all( list.map(async (info) => { const title = info.title;