Skip to content

Add server handling of HTTP status code 204#580

Merged
jjlawren merged 1 commit intopushingkarmaorg:masterfrom
jjlawren:add_http_204
Oct 8, 2020
Merged

Add server handling of HTTP status code 204#580
jjlawren merged 1 commit intopushingkarmaorg:masterfrom
jjlawren:add_http_204

Conversation

@jjlawren
Copy link
Collaborator

@jjlawren jjlawren commented Oct 7, 2020

It appears that newer versions of the Plex server now return HTTP status code 204 when deleting a playlist. It must have been 200 or 201 previously. The client and myplex endpoints already handle this code.

Found in today's CI runs of #530.

@jjlawren jjlawren merged commit 7dad2a8 into pushingkarmaorg:master Oct 8, 2020
@jjlawren jjlawren deleted the add_http_204 branch October 8, 2020 20:12
SuperRiderTH added a commit to SuperRiderTH/resound that referenced this pull request Nov 1, 2020
Newer versions of the Plex Media Server return HTTP status code 204 when deleting a playlist. This causes PlexAPI versions 4.1.2 and lower to throw a BadRequest exception. We now check the PlexAPI version to see if we need to work around this issue or not. This was fixed in the PlexAPI with pushingkarmaorg/python-plexapi#580, so we will assume that a version higher than 4.1.2 will contain this fix.
@jjlawren jjlawren mentioned this pull request Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant