Skip to content

Commit

Permalink
fix: POST the scrobble payload instead of GET
Browse files Browse the repository at this point in the history
  • Loading branch information
leinelissen committed Jun 13, 2023
1 parent 6c9962f commit 3650a0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utility/JellyfinApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

0 comments on commit 3650a0f

Please sign in to comment.