Skip to content

Commit

Permalink
fix unsynced lyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 committed Oct 5, 2023
1 parent c464be8 commit d309b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/api/jellyfin/jellyfin-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit d309b81

Please sign in to comment.