ShareShortcuts

Search Spotify Playlist

Tell Siri to play a

jw3333
Fork “Search Spotify Playlist”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so jw3333 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
41K
Saved
1
Actions
18
Category
API
Version
1.0
Language
EN

Tell Siri to play a

What's New

Version 1.0

First release

Version History
1.0 Jun 13, 2022

First release

What it does

18 actions
  1. Dictate Text
  2. Set Variable
    SearchText
  3. Count
  4. If
  5. URL
    http://spotify-car-play.herokuapp.com/search/…/playlist
  6. Get Contents of URL
    …
  7. Get Dictionary from Input
  8. Get Dictionary Value
  9. Get Item from List
  10. Get Dictionary from Input
  11. Get Dictionary Value
  12. Set Variable
    TargetUri
  13. Count
  14. If
  15. URL
    …
  16. Open X-Callback URL
  17. If
  18. If

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#include 'actions/text'
#define color teal

listen(, "en-US")
@SearchText
const Count = count(@SearchText, "Characters")

if Count > 0 {
	url("http://spotify-car-play.herokuapp.com/search/{@SearchText}/playlist")
	const ContentsOfURL = downloadURL()
	const Dictionary = getDictionary(ContentsOfURL)
	const DictionaryValue = getValue(Dictionary, "playlists")
	const ItemFromList = getListItem(DictionaryValue, 0)
	const Dictionary1 = getDictionary(ItemFromList)
	@TargetUri = Dictionary1['uri']
	const Count1 = count(@TargetUri, "Characters")
	if Count1 > 0 {
		url()
		openCustomXCallbackURL()
	} else {
	}
} else {
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by jw3333

See All

You Might Also Like

See All
Advertisement