fix(route): nga 解析失败 (#10586)

移除硬编码索引,改为直接全文搜索
This commit is contained in:
syrinka
2022-08-23 22:26:11 +08:00
committed by GitHub
parent 9ecf42a9fa
commit 59ad249cb2
-1
View File
@@ -77,7 +77,6 @@ module.exports = async (ctx) => {
const title = $('title').text() || '';
const posterMap = JSON.parse(
$('script')
.eq(7)
.text()
.match(/commonui\.userInfo\.setAll\((.*)\)$/m)[1]
);