ShareShortcuts
Fazer fork de “Spotify ➤ MP3”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que pola receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
28K
Salvo
1
Ações
37
Categoria
Social Network
Versão
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.

Novidades

Versão 1.3

Add more sites with proper attributes

Histórico de versões
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 jan de 2024

Improved security

1.0 14 de dez de 2023

First release

O que ele faz

37 ações
  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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de pola

Ver tudo

Você também pode gostar

Ver tudo
Publicidade