Skip to content

Commit

Permalink
fix unsynced lyrics (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 authored Oct 5, 2023
1 parent c464be8 commit 118a9f7
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

1 comment on commit 118a9f7

@vercel
Copy link

@vercel vercel bot commented on 118a9f7 Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

feishin – ./

feishin.vercel.app
feishin-git-development-jeffvli.vercel.app
feishin-jeffvli.vercel.app

Please sign in to comment.