diff --git a/CHANGELOG.md b/CHANGELOG.md index 788feb80..c78decd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ These changes are awaiting release: +## Fixed + +- Plex Login: Request JSON from plex api so that it doesn't return XML. + # [4.1.0] - 2026-07-19T14:18:00Z ## Changed diff --git a/src/lib/util/plex.ts b/src/lib/util/plex.ts index 7922efb7..19b44038 100644 --- a/src/lib/util/plex.ts +++ b/src/lib/util/plex.ts @@ -68,6 +68,9 @@ export function preparePlexAuth(): Plex { // Don't really want to give all the possible headers, // trying to minimize it to what gets it working. headers: { + // So plex api returns json. + Accept: "application/json", + // Plex product specific headers: "X-Plex-Product": "Watcharr", "X-Plex-Client-Identifier": clientId, "X-Plex-Version": "Plex OAuth",