fix: 专栏获取内容不正确,需要排除推荐内容 (#293)

Fixed #293
This commit is contained in:
shanmite 2023-06-28 15:28:27 +08:00
parent 75383e8faa
commit 5a3c16d20d

View File

@ -432,7 +432,7 @@ class Searcher {
continue continue
} }
const const
content = await bili.getOneArticleByCv(id), content = (await bili.getOneArticleByCv(id) || "").split("推荐文章")[0],
dyids = content.match(/[0-9]{18}/g) || [], dyids = content.match(/[0-9]{18}/g) || [],
short_ids = content.match(/(?<=b23.tv\/)[a-zA-Z0-9]{7}/g) || [], short_ids = content.match(/(?<=b23.tv\/)[a-zA-Z0-9]{7}/g) || [],
short_id_set = [...new Set(short_ids)], short_id_set = [...new Set(short_ids)],