Spotify: play specific playlist

256 views
Skip to first unread message

Daniel Suranyi

unread,
Mar 13, 2021, 7:42:01 PM3/13/21
to Automate
I am trying to make Spotify play a specific playlist. I found a community flow here: https://llamalab.com/automate/community/flows/17848 but that works with interactions and I think it should also work with intents, since that would be much faster.
I browsed around a bit about how to send intents to Spotify, but I cannot make the Broadcast block work. Currently I have this variant:

Screenshot 2021-03-14 014051.png
I also tried without the "Extras" field and with different combinations of "Package" and "Receiver class". Spotify just does nothing...

Henrik "The Developer" Lindqvist

unread,
Mar 14, 2021, 7:13:38 AM3/14/21
to Automate
You should likely use the App start block, not Broadcast send, see: https://developer.android.com/guide/components/intents-common#PlaySearch

sch...@gmail.com

unread,
8:34 PM (3 hours ago) 8:34 PM
to Automate for Android
This is a reply to an old post, but references something I was struggling with and this was the best search result I found ... regrettably it was not answered with a real solution.

Here is what I ended up with that works to start playing a specific Spotify playlist:

Using an App start block, set the following:
Package = com.spotify.music (selected from drop-down of installed apps)
Action = View
Data URI = spotify:playlist:{playlistid}:play

You can get the playlistid by examining the link generated by sharing a playlist. The link generated will be in the form:
    Copy/paste the letters/numbers between the last / and the ?.

I hope this is clear enough that it helps others who are attempting to do the same.

-Stuart
Reply all
Reply to author
Forward
0 new messages