From 5a3c16d20dc75d4d04f40c4b703fe3a5cec528bd Mon Sep 17 00:00:00 2001 From: shanmite Date: Wed, 28 Jun 2023 15:28:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=93=E6=A0=8F=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=8D=E6=AD=A3=E7=A1=AE=EF=BC=8C=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E6=8E=92=E9=99=A4=E6=8E=A8=E8=8D=90=E5=86=85=E5=AE=B9?= =?UTF-8?q?=20(#293)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed #293 --- lib/core/searcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/searcher.js b/lib/core/searcher.js index b490f6f..139889c 100644 --- a/lib/core/searcher.js +++ b/lib/core/searcher.js @@ -432,7 +432,7 @@ class Searcher { continue } const - content = await bili.getOneArticleByCv(id), + content = (await bili.getOneArticleByCv(id) || "").split("推荐文章")[0], dyids = content.match(/[0-9]{18}/g) || [], short_ids = content.match(/(?<=b23.tv\/)[a-zA-Z0-9]{7}/g) || [], short_id_set = [...new Set(short_ids)],