Catch error on jellyfin query fail

This commit is contained in:
jeffvli 2023-06-07 01:10:24 -07:00 committed by Jeff
parent 2bdc664619
commit 41a901f3c4

View File

@ -85,10 +85,12 @@ export const useSongLyrics = (
}
if (server.type === ServerType.JELLYFIN) {
const jfLyrics = await api.controller.getLyrics({
const jfLyrics = await api.controller
.getLyrics({
apiClientProps: { server, signal },
query: { songId: song.id },
});
})
.catch((err) => console.log(err));
if (jfLyrics) {
return {