mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 14:37:06 +01:00
Catch error on jellyfin query fail
This commit is contained in:
parent
2bdc664619
commit
41a901f3c4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user