ShareShortcuts

Play Spotify Track

Tell Siri to play a specific track in Spotify

jw3333
Bifurcar “Play Spotify Track”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que jw3333 reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
41K
Guardado
0
Acciones
18
Categoría
API
Versión
1.0
Idioma
EN

Tell Siri to play a specific track in Spotify

Novedades

Versión 1.0

First release

Historial de versiones
1.0 13 de jun. de 2022

First release

Qué hace

18 acciones
  1. Dictate Text
  2. Set Variable
    SearchText
  3. Count
  4. If
  5. URL
    http://spotify-car-play.herokuapp.com/search/…/track
  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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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}/track")
	const ContentsOfURL = downloadURL()
	const Dictionary = getDictionary(ContentsOfURL)
	const DictionaryValue = getValue(Dictionary, "tracks")
	const ItemFromList = getFirstItem(DictionaryValue)
	const Dictionary1 = getDictionary(ItemFromList)
	@TargetUri = Dictionary1['uri']
	const Count1 = count(@TargetUri, "Characters")
	if Count1 > 0 {
		url()
		openCustomXCallbackURL()
	} else {
	}
} else {
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de jw3333

Ver todo

También te puede gustar

Ver todo
Publicidad