go-plex-client icon indicating copy to clipboard operation
go-plex-client copied to clipboard

Add retrieval of playlists

Open jrh3k5 opened this issue 1 year ago • 0 comments

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

jrh3k5 avatar Aug 06 '23 19:08 jrh3k5