From 88b35c982509c97440fa680421f1fd5e881632e0 Mon Sep 17 00:00:00 2001 From: cxk <435283555@qq.com> Date: Wed, 12 Jun 2024 16:19:23 +0800 Subject: [PATCH] FIX: duration field name error --- src/lib/SunoApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/SunoApi.ts b/src/lib/SunoApi.ts index ec37731..db851fa 100644 --- a/src/lib/SunoApi.ts +++ b/src/lib/SunoApi.ts @@ -259,7 +259,7 @@ class SunoApi { prompt: audio.metadata.prompt, type: audio.metadata.type, tags: audio.metadata.tags, - duration: audio.metadata.duration_formatted, + duration: audio.metadata.duration, })); } } @@ -367,7 +367,7 @@ class SunoApi { prompt: audio.metadata.prompt, type: audio.metadata.type, tags: audio.metadata.tags, - duration: audio.metadata.duration_formatted, + duration: audio.metadata.duration, error_message: audio.metadata.error_message, })); }