I stopped working on these Shortcuts. If you want to continue working on these shortcuts you should fork the master branch and not the deprecated branch. I removed the entire update mechanism from the Shortcuts in the deprecated branch to at least get them to install on iOS 13 since iOS 13 does not allow for Shortcuts files to be installed. I haven't tested them on iOS 13 and there may be other things not working on iOS 13 since I don't have any devices running iOS 13 at the moment. I similar project for iOS 13 is currently in the works with the name of Shortcutify. Feel free to check out this project. This project is in no way affiliated by me.
I was working on a few Shortcuts which allow control of Spotify with the help of Siri snd Shortcuts. It allows you to play the playlist you played last right from Siri e.g. you could ask Siri "Play Spotify" and the Shortcut will play whatever you last played in your Spotify account or to add the currently playing track to your Favorites.
All this relies on the Spotify Web API as you can't work with the Spotify app directly. This means that there will most likely be times where the Shortcuts behave unexpectedly or play a track/playlist that was played several minutes ago and the client has not yet synced back to the Spotify backend. An internet connection is required for the Shortcuts to work.
The installation Shortcut will guide through the authentication with Spotify and the installation of the other Shortcuts. Every time you execute the installation Shortcut it lets you choose one Shortcut to set up.
To set up a Siri shortcut you have to tap on the settings icon within the Shortcut and tap the "Add to Siri" button. Choose a phrase to trigger the shortcut and that's it.
When this Shortcut is triggered it will play your most recently played playlist, track or album.
Spotify Radios and the Daily Mixes will only play the track that was last played within the Daily Mix/Radio. The Spotify WebAPI should report the URL of the Daily Mix/Radio but doesn't.
Please note that there is a workaround for playing a playlist in place which is a result of Spotify having no way of allowing the automatic playback upon receiving a playlist URI. The only thing that Spotify will autoplay when receiving a URI is a Song. This means that the Shortcut will first get the name of your most recently played track (inside the playlist that was played) and will send this URI to Spotify which Spotify will then automatically play. The Shortcut will then transfer the playback over to the playlist in the background. Especially on slow internet connections this transfer sometimes does not work. If the transfer does not work you can either ask Siri to show you your last playlist (requires another Shortcut) and start it manually or look for the playlist yourself and play it. If someone finds a solution to this I'm more than happy to implement it.
When this Shortcut is triggered it will open your most recently played object in Spotify. It will show your most recently played track, playlist or album.
Spotify Radios and the Daily Mixes will only redirect you to the track that was last played within the Daily Mix/Radio. The Spotify WebAPI should report the URL of the Daily Mix/Radio but doesn't.
This Shortcut adds the song that spotify currently plays to your saved songs
This Shortcut yust skips to the next song, nothing else.
If you have any ideas for other ways Siri could be used to control Spotify let me know and I'll do my best to bake that idea into a Shortcut. Keep in mind though that it's not possible to let Siri hand over a variable to Shortcut e.g. asking Siri to "Play Bella Ciao" and have Siri hand over "Bella Ciao" to the Shortcut to search for that track does not work.
When the time comes and you don't feel like you want to use the Shortcuts anymore or don't feel comfortable with the safety of your Spotify data you can revoke the access for the Shortcuts right from your Spotify account page under the Apps tab where it will be listed as "Spotify Shortcut". After that you won't be able to use the Shortcuts anymore and would have to generate a new refresh token.