ShareShortcuts
Fork “Spotify ➤ MP3”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så pola får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
28K
Gemt
1
Handlinger
37
Kategori
Sociale netværk
Version
1.3
Sprog
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.

Nyheder

Version 1.3

Add more sites with proper attributes

Versionshistorik
1.3 25. apr. 2024

Add more sites with proper attributes

1.2 23. mar. 2024

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

1.1 25. jan. 2024

Improved security

1.0 14. dec. 2023

First release

Hvad den gør

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

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#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!")
}
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra pola

Se alle

Du vil måske også kunne lide

Se alle
Annonce