diff --git a/src/utility/JellyfinApi.ts b/src/utility/JellyfinApi.ts index 8dac6f1..82836f1 100644 --- a/src/utility/JellyfinApi.ts +++ b/src/utility/JellyfinApi.ts @@ -293,11 +293,14 @@ export async function sendPlaybackEvent(path: string, credentials: Credentials) // Generate a config from the credentials and dispatch the request const config = generateConfig(credentials); await fetch(`${credentials?.uri}${path}`, { + method: 'POST', headers: { ...config.headers, 'Content-Type': 'application/json' }, body: JSON.stringify(payload), // Swallow and errors from the request - }).catch(() => {}); + }).catch((err) => { + console.error(err); + }); } \ No newline at end of file