mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix unsynced lyrics (#279)
This commit is contained in:
@@ -934,7 +934,7 @@ const getLyrics = async (args: LyricsArgs): Promise<LyricsResponse> => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (res.body.Lyrics.length > 0 && res.body.Lyrics[0].Start === undefined) {
|
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]);
|
return res.body.Lyrics.map((lyric) => [lyric.Start! / 1e4, lyric.Text]);
|
||||||
|
|||||||
Reference in New Issue
Block a user