From a516b100ab42eccb842f107f932d62d09a966977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Mon, 5 Jul 2021 00:19:33 +0200 Subject: [PATCH] Fix: playMedia endpoint for some Plex server versions --- dist/plex-meets-homeassistant.js | 2 +- src/modules/PlayController.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index d411e8f..f7ba80f 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -18958,7 +18958,7 @@ class PlayController { url = plex.authorizeURL(url); try { const plexResponse = await axios({ - method: 'post', + method: 'get', url, headers: { 'X-Plex-Target-Client-Identifier': machineID, diff --git a/src/modules/PlayController.ts b/src/modules/PlayController.ts index b72f74e..e5b633e 100644 --- a/src/modules/PlayController.ts +++ b/src/modules/PlayController.ts @@ -168,7 +168,7 @@ class PlayController { try { const plexResponse = await axios({ - method: 'post', + method: 'get', url, headers: { 'X-Plex-Target-Client-Identifier': machineID,