From b7c11826cdc0375894060eef3ab5c093f27b857d Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Sun, 9 Apr 2023 16:45:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=93=94=E5=93=A9=E5=93=94=E5=93=A9=E5=88=86=E9=A1=B5=E9=97=AE?= =?UTF-8?q?=E9=A2=98(#I6U00P)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tools.js b/apps/tools.js index e183f80..0677036 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -340,7 +340,7 @@ export class tools extends plugin { // 限制时长 & 考虑分页视频情况 const query = querystring.parse(url); const curPage = query?.p || 0; - const curDuration = pages?.[curPage].duration || duration; + const curDuration = pages?.[curPage]?.duration || duration; const isLimitDuration = curDuration > this.biliDuration // 格式化数据 const combineContent =