ShareShortcuts

Spotify ➤ MP3

• Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut

pola
„Spotify ➤ MP3“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit pola die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
25K
Gesichert
1
Aktionen
36
Kategorie
API
Version
1.0
Sprache
EN

• Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut. •This Shortcut can also be used on Apple Watch.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 23. Mär 2024

First release

Was er macht

36 Aktionen
  1. Comment
    Created by: @Pola219 Get More Useful Shortcuts in: https://routinehub.co/user/Pola219
  2. Comment
    Version 1.4
  3. Dictionary
  4. Get Contents of URL
    https://updatekit.mikebeas.com/v1
  5. Get Dictionary Value
  6. If
  7. Choose from Menu
    New version available. What's new: … Press UPDATE to download latest version. This is an important update. Do not skip!
  8. Choose from Menu
    UPDATE
  9. Open URLs
  10. Stop This Shortcut
  11. Choose from Menu
    SKIP
  12. Nothing
  13. Comment
    • Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut. •This Shortcut can also be used on Apple Watch.
  14. If
  15. URL
  16. Expand URL
  17. Set Variable
    iniLink
  18. Split Text
  19. Get Item from List
  20. Set Variable
    Response
  21. List
  22. Get Contents of URL
    https://spotifymate.com
  23. Make HTML from Rich Text
  24. Match Text
  25. Split Text
  26. Get Item from List
  27. Get Item from List
  28. Get Contents of URL
    https://spotifymate.com/action
  29. Make HTML from Rich Text
  30. Match Text
  31. Get Item from List
  32. URL
    …
  33. Get Contents of URL
    …
  34. If
  35. Replace Text
  36. Save File

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/web'
#define color green
#define glyph musicNote

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

const UPDATE = jsonRequest("https://updatekit.mikebeas.com/v1", "POST", {
	"shortcut": {
		"id": "17349",
		"module": "routinehub",
		"version": "1.4"
	}
})
const Response = getValue(UPDATE, "update")

if Response ==  {
	menu "New version available. \nWhat's new: \n{UPDATE['payload.notes']}\nPress UPDATE to download latest version. This is an important update. Do not skip!" {
	item "UPDATE":
		openURL(UPDATE['payload.download'])
		stop()
	item "SKIP":
	}
}
/*
• Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut.
•This Shortcut can also be used on Apple Watch.
*/

if ShortcutInput {
	const InputURL = url(ShortcutInput)
	@iniLink = expandURL(InputURL)
	const SplitText = splitText(@iniLink, ".")
	getListItem(SplitText, 2)
	@Response
	list("spotify")
	const ContentsOfURL = downloadURL("https://spotifymate.com")
	makeHTML(ContentsOfURL)
	const Matches = containsText(, "(?<=<input name=\")(.*?)(?=\" type=\"hidden\" value=\")(.*?)(?=\" \/>)")
	const SplitText1 = splitText(Matches, """)
	const Value = getListItem(SplitText1, 0)
	const Key = getListItem(SplitText1, 0)
	const ContentsOfURL1 = formRequest("https://spotifymate.com/action", "POST", {
		"url": "{@iniLink}",
		"{Key}": "{Value}"
	})
	makeHTML(ContentsOfURL1)
	const Matches1 = containsText(, "(?<= href=\")[^\"]+(?=\" class=\"abutton is-success is-fullwidth\"><span><span>Download Mp3)")
	getRandomItem(Matches1)
	url()
	const Filename = downloadURL()
	if @Response contains "spotify" {
		const Audioname = replaceText("SpotifyMate.com - ", "", Filename)
		saveFile("{Audioname}.mp3", Filename)
	}
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von pola

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung