mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Catch error on jellyfin query fail
This commit is contained in:
@@ -85,10 +85,12 @@ export const useSongLyrics = (
|
||||
}
|
||||
|
||||
if (server.type === ServerType.JELLYFIN) {
|
||||
const jfLyrics = await api.controller.getLyrics({
|
||||
apiClientProps: { server, signal },
|
||||
query: { songId: song.id },
|
||||
});
|
||||
const jfLyrics = await api.controller
|
||||
.getLyrics({
|
||||
apiClientProps: { server, signal },
|
||||
query: { songId: song.id },
|
||||
})
|
||||
.catch((err) => console.log(err));
|
||||
|
||||
if (jfLyrics) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user