Skip to content

Commit

Permalink
Merge pull request #18 from JurajNyiri/workaround_cors_playmedia
Browse files Browse the repository at this point in the history
Fix: playMedia endpoint for some Plex server versions
  • Loading branch information
JurajNyiri authored Jul 4, 2021
2 parents 93e543f + a516b10 commit 004a6f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/plex-meets-homeassistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/PlayController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class PlayController {

try {
const plexResponse = await axios({
method: 'post',
method: 'get',
url,
headers: {
'X-Plex-Target-Client-Identifier': machineID,
Expand Down

0 comments on commit 004a6f3

Please sign in to comment.