Catch error on jellyfin query fail
This commit is contained in:
parent
2bdc664619
commit
41a901f3c4
1 changed files with 6 additions and 4 deletions
|
@ -85,10 +85,12 @@ export const useSongLyrics = (
|
||||||
}
|
}
|
||||||
|
|
||||||
if (server.type === ServerType.JELLYFIN) {
|
if (server.type === ServerType.JELLYFIN) {
|
||||||
const jfLyrics = await api.controller.getLyrics({
|
const jfLyrics = await api.controller
|
||||||
apiClientProps: { server, signal },
|
.getLyrics({
|
||||||
query: { songId: song.id },
|
apiClientProps: { server, signal },
|
||||||
});
|
query: { songId: song.id },
|
||||||
|
})
|
||||||
|
.catch((err) => console.log(err));
|
||||||
|
|
||||||
if (jfLyrics) {
|
if (jfLyrics) {
|
||||||
return {
|
return {
|
||||||
|
|
Reference in a new issue