Skip to content

CarlHauschke/Spotify-Shortcuts-iOS12

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 

Repository files navigation

This repository is deprecated

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.

Introduction

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.

Installation

For the installation install this setup Shortcut for iOS 12 and this setup Shortcut for iOS 13.

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.

INSTALLSHORTCUTVIDEO

Manual Download links

Play Spotify Last played object Add to favorites Skip Track Add track to playlist Play Item Share Song Search Spotify Search for Lyrics

Setting up the Siri command

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.

SIRISETUPVIDEO

Play the playlist/track/album which was last played from your Spotify account

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.

VIDEOGOESHERE

Show your most recently played object in Spotify (doesn't autoplay 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.

VIDEOGOESHERE

Add currently playing song to favorites

This Shortcut adds the song that spotify currently plays to your saved songs

VIDEOGOESHERE

Skip track

This Shortcut yust skips to the next song, nothing else.

VIDEOGOESHERE

More Shortcuts are coming...

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 you want to say goodbye to the convenience of controlling Spotify with Siri

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.

About

This repository contains a list of all available Shortcuts to control Spotify as well as an update mechanism.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published