LukeHagar / plex-api-spec

An open source Plex Media Server API Specification
MIT License
27 stars 8 forks source link

Update Playlists #8

Closed johnhebron closed 5 months ago

johnhebron commented 5 months ago

Kind of a big one

Intent

  1. adding 200 response format for getPlaylists
  2. adding 200 response format for getPlaylist
  3. adding 200 response format for getPlaylistContents
  4. Updating the updatePlaylists endpoint response and docs
  5. Updating response for getPlaylists
  6. Added 200 response for addPlaylistContents and URI definition

Notes

I was having trouble figuring out the uri to add items to a playlist, so I peeked at the python-plexapi and found that the structure is:

server://{self.machineIdentifier}/com.plexapp.plugins.library/library/metadata/{ratingKeys}

where {ratingKeys} is a comma separated list of ratingKeys. I updated the docs accordingly.