From 3650a0fedee9ca01a31d616a27e1b08141c47f9e Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Tue, 13 Jun 2023 23:33:23 +0200 Subject: [PATCH] fix: POST the scrobble payload instead of GET --- src/utility/JellyfinApi.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utility/JellyfinApi.ts b/src/utility/JellyfinApi.ts index 8dac6f15..82836f1b 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