Backs up all public or privte Spotify playlists for a given user to text files in both Spotify and human readable formats
Backs up Spotify playlists for a given user to text files in both Spotify URI and human readable formats
Spotify track URI format can be copied and pasted back in to Spotify to restore a playlist to a previous state
(for example if you accidentally deleted a track and didn't do an immediate Ctrl-Z / Cmd-Z)
For public playlists, \$SPOTIFY_USER be set in the environment or given as the first arg
For private playlists, the user is inferred from the authorized token
Spotify track URI format can also be combined with spotify_add_to_playlist.sh to restore or add to another playlist
Requires \$SPOTIFY_ID and \$SPOTIFY_SECRET to be defined in the environment
$usage_playlist_help
Caveat: due to limitations of the Spotify API, by default works on public playlists.
For private playlists you must exportSPOTIFY_PRIVATE=1 and preferably pre-generate the token in your shell to prevent repeated web authorization pop-ups: