This PR adds the ability to shuffle a playlist when you click it. This is accomplished by splitting the playlist up into chunks and rearranging those chunks randomly within the playlist. The Spotify API only provides the ability to move one chunk of songs within one request, so for now, a maximum of 20 update playlist requests are sent for a given playlist. This is to limit API load and avoid corrupting a playlist.
Add ability to shuffle playlist on click
This PR adds the ability to shuffle a playlist when you click it. This is accomplished by splitting the playlist up into chunks and rearranging those chunks randomly within the playlist. The Spotify API only provides the ability to move one chunk of songs within one request, so for now, a maximum of 20 update playlist requests are sent for a given playlist. This is to limit API load and avoid corrupting a playlist.