From 17fd8586a82f1073afb96dd531a1c4a214f6ebdd Mon Sep 17 00:00:00 2001 From: ifeif <36729028+ifeif@users.noreply.github.com> Date: Wed, 17 May 2023 20:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20uploadRecord.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/uploadRecord.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/uploadRecord.js b/utils/uploadRecord.js index fe19a50..311ae1d 100644 --- a/utils/uploadRecord.js +++ b/utils/uploadRecord.js @@ -126,7 +126,7 @@ async function uploadRecord (recordUrl, ttsMode = 'vits-uma-genshin-honkai') { return false } let buf = Buffer.from(result.buffer) - let seconds = result.time.seconds + let seconds = result.time ? result.time.seconds : 0 const hash = md5(buf) const codec = String(buf.slice(0, 7)).includes('SILK') ? 1 : 0 const body = core.pb.encode({