fix unsynced lyrics (#279)

This commit is contained in:
Kendall Garner 2023-10-05 05:02:42 +00:00 committed by GitHub
parent c464be8cea
commit 118a9f73d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -934,7 +934,7 @@ const getLyrics = async (args: LyricsArgs): Promise<LyricsResponse> => {
}
if (res.body.Lyrics.length > 0 && res.body.Lyrics[0].Start === undefined) {
return res.body.Lyrics[0].Text;
return res.body.Lyrics.map((lyric) => lyric.Text).join('\n');
}
return res.body.Lyrics.map((lyric) => [lyric.Start! / 1e4, lyric.Text]);