ShareShortcuts

Spotify ➤ MP3

pola
Bifurcar “Spotify ➤ MP3”

¿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 pola 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
28K
Guardado
1
Acciones
37
Categoría
Social Network
Versión
1.3
Idioma
EN

Spotify ➤ MP3

Run it from Spotify Share Sheet or copy the Spotify track URL and run into the shortcut. This shortcut can be used on Apple Watch too.

Novedades

Versión 1.3

Add more sites with proper attributes

Historial de versiones
1.3 25 de abr. de 2024

Add more sites with proper attributes

1.2 23 de mar. de 2024

Added proper error handling. The shortcut now faster than previous version

1.1 25 de ene. de 2024

Improved security

1.0 14 de dic. de 2023

First release

Qué hace

37 acciones
  1. Comment
    Created by: @Pola219 Get More Useful Shortcuts in: https://routinehub.co/user/Pola219
  2. Comment
    Version 1.5
  3. If
  4. Get URLs from Input
  5. Get Item from List
  6. URL
  7. Expand URL
  8. Set Variable
    iniLink
  9. Split Text
  10. Get Item from List
  11. Set Variable
    domain
  12. Get Contents of URL
    https://spotifymate.com
  13. Make HTML from Rich Text
  14. Match Text
  15. Split Text
  16. Get Item from List
  17. Get Item from List
  18. Get Contents of URL
    https://spotifymate.com/action
  19. Get Text from Input
  20. Split Text
  21. Get Item from List
  22. Get Item from List
  23. Text
  24. Get URLs from Input
  25. Repeat with Each
  26. Get Item from List
  27. If
  28. Get URLs from Input
  29. If
  30. Nothing
  31. Get Item from List
  32. If
  33. Get Contents of URL
    …
  34. Set Name
  35. Save File
  36. If
  37. Show Notification
    No URL specific ☹️

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'
#define color green
#define glyph musicNote

/*
Created by: @Pola219
Get More Useful Shortcuts in:
https://routinehub.co/user/Pola219
*/
// Version 1.5


if ShortcutInput {
	const URLs = getURLs(ShortcutInput)
	const ItemFromList = getLastItem(URLs)
	const InputURL = url(ItemFromList)
	@iniLink = expandURL(InputURL)
	const SplitText = splitText(@iniLink, ".")
	@domain = getListItem(SplitText, 2)
	const ContentsOfURL = downloadURL("https://spotifymate.com")
	makeHTML(ContentsOfURL)
	const Matches = containsText(, "(?<=<input name=\")(.*?)(?=\" type=\"hidden\" value=\")(.*?)(?=\" \/>)")
	const SplitText1 = splitText(Matches, """)
	const Value = getFirstItem(SplitText1)
	const Key = getLastItem(SplitText1)
	const ContentsOfURL1 = formRequest("https://spotifymate.com/action", "POST", {
		"url": "{@iniLink}",
		"{Key}": "{Value}"
	})
	const Text = getText(ContentsOfURL1)
	const SplitText2 = splitText(Text)
	getListItem(SplitText2, 2)
	getListItem(SplitText2, 3)
	const URLs1 = getURLs(ContentsOfURL1)
	for _ in URLs1 {
		const ItemFromList1 = getListItem(@RepeatItem, 1)
		if ItemFromList1['Name'] contains "Mp3" {
			getURLs(@RepeatItem)
		} else {
		}
	}
	getListItem(RepeatResults, 0)
	if @domain contains "spotify" {
		const ContentsOfURL2 = downloadURL()
		const RenamedItem = setName(ContentsOfURL2)
		saveFilePrompt(RenamedItem)
	}
} else {
	showNotification("No URL specific ☹️ ", "Invalid URL!")
}
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 pola

Ver todo

También te puede gustar

Ver todo
Publicidad