ShareShortcuts

Spotify ➤ MP3

pola
Dupliquer « Spotify ➤ MP3 »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que pola soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
28K
Enregistré
1
Actions
37
Catégorie
Social Network
Version
1.3
Langue
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.

Nouveautés

Version 1.3

Add more sites with proper attributes

Historique des versions
1.3 25 avr. 2024

Add more sites with proper attributes

1.2 23 mars 2024

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

1.1 25 janv. 2024

Improved security

1.0 14 déc. 2023

First release

Ce qu’il fait

37 actions
  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 ☹️

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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!")
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de pola

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité