go-plex-client
go-plex-client copied to clipboard
Add retrieval of playlists
This PR:
- Adds a new
GetPlaylists
method to the client to retrieve playlists from Plex - Adds to the CLI the ability to set an access token as well as get and print the playlists
- Updates the README to include instructions on how to use the CLI, as well as removing the out-of-date listing of its supported commands
This was tested by locally running the following commands within the cmd/
folder:
go run . token <redacted>
go run . pick-server
// picked a server
go run . playlists
26 playlists found
ID 185139 - '❤️ Tracks'
ID 185138 - 'All Music'
ID 185140 - 'Fresh ❤️'
ID 174514 - 'Recently Added'
...
go run . playlist 174514
// list of items in the 'Recently Added' playlist