ShareShortcuts

Another Spotify To Mp3

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

pola
„Another Spotify To 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
0
Aktionen
50
Kategorie
Music
Version
1.6
Sprache
EN

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

Neue Funktionen

Version 1.6

Add new api and content

Versionsverlauf
1.6 13. Apr 2025

Add new api and content

1.5 14. Dez 2024

Fix api error and added more option for saving method

1.4 21. Jun 2024

Adding new api and fix al download issues

1.0 18. Apr 2024

First release

Was er macht

50 Aktionen
  1. Comment
    - Another Spotify To Mp3 - Version: 1.9 - Created by: @Pola219 - https://routinehub.co/user/Pola219
  2. Text
  3. Get Contents of URL
    https://updatekit.mikebeas.com/v1
  4. Get Dictionary from Input
  5. Set Variable
    Data
  6. Get Dictionary Value
  7. If
  8. Text
  9. Choose from Menu
    …
  10. Choose from Menu
    Update Now
  11. Open URLs
  12. Stop This Shortcut
  13. Choose from Menu
    Not Now
  14. Match Text
  15. Get Group from Matched Text
  16. Set Variable
    id
  17. URL
    https://open.spotify.com/track/…
  18. Set Variable
    trackUrl
  19. If
  20. Choose from Menu
    No matching … were found
  21. Choose from Menu
    Try Again
  22. Run Shortcut
    Another Spotify To Mp3 2
  23. Choose from Menu
    Cancel
  24. Stop This Shortcut
  25. If
  26. Get Contents of URL
    https://spowload.com/spotify/track-…
  27. Set Name
  28. Match Text
  29. Set Variable
    csrf
  30. Get Contents of URL
    https://api.fabdl.com/spotify/get?url=…
  31. Get Dictionary Value
  32. Set Variable
    title
  33. Get Dictionary Value
  34. Set Variable
    artist
  35. Get Dictionary Value
  36. Set Variable
    cover
  37. Get Contents of URL
    https://spowload.com/convert
  38. Set Variable
    Response
  39. Get Dictionary Value
  40. If
  41. Show Alert
  42. If
  43. Get Dictionary Value
  44. Set Variable
    DownloadUrl
  45. If
  46. Get Contents of URL
    …
  47. Set Name
  48. Save File
  49. If
  50. Show Alert

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 teal
#define glyph musicNote

/*
- Another Spotify To Mp3
- Version: 1.9
- Created by: @Pola219
- https://routinehub.co/user/Pola219
*/
const ContentsOfURL = jsonRequest("https://updatekit.mikebeas.com/v1", "POST", {
	"shortcut": {
		"id": "18442",
		"module": "routinehub",
		"version": "{}"
	}
}, {})
getDictionary(ContentsOfURL)
@Data
const DictionaryValue = getValue(@Data, "update")

if DictionaryValue ==  {
	menu  {
	item "Update Now":
		openURL(@Data)
		stop()
	item "Not Now":
	}
}
const Matches = containsText(ShortcutInput, "https?:\/\/(?:embed\.|open\.)(?:spotify\.com\/)(?:track\/|\?uri=spotify:track:)((\w|-){22})")
getMatchGroup(Matches, 0)
@id
url("https://open.spotify.com/track/{@id}")
@trackUrl

if !@trackUrl {
	menu "No matching {@trackUrl} were found" {
	item "Try Again":
		runSelf(@trackUrl)
	item "Cancel":
		stop()
	}
} else {
	const ContentsOfURL1 = downloadURL("https://spowload.com/spotify/track-{@id}", {
		"Cookie": "XSRF-\nTOKEN=eyJpdiI6ImsrUTZJTVQxbWwwSGZHWkFVem16SkE9PSIsInZhbHVlIjoiMFA0RFk1ZFE0dzI4emJ0V\nWZFZGVSSGxwd3U2NkhzK2g5XC9xekFtNE1kajdGaVJvUHZMdUJ6SUR6XC9qQm55NUtaZGVlU0llSE5TRmtG\nM2xKOGRnYUJQZz09IiwibWFjIjoiY2YxNjQxOWRiNDNkODlmYzQ4M2Q0ZTdlNTUxNmQ0MDVhNTFkMGI0MTV\nlNzZlY2NlMDNhYTBkODg2MzE4YTk5YyJ9;\nlaravel_session=eyJpdiI6Im8zbUk1UkRSOHpDanBXVzJpdmRNZXc9PSIsInZhbHVlIjoiWlNTRnVYZVw\nvb21PRjJhaU81UFRKRDRIb0dOUWRPSjAxcGV1MEhYV1NnbTA4M0FvT2lJQmQrb3JDRzh4Y3UxTkdlNFwvSl\nhLSnF4TmZUTHRUUVBPNGNTQT09IiwibWFjIjoiMDQwZTFlNDNkYzFlOWNhOTVlM2E3NDNlM2M5N2MyNTkyM\nTQ1ZTQwNGYwNGQ2ZDlhYTY0MTE4Nzc0M2UzMGEwMCJ9",
		"withCredentials": "true"
	})
	setName(ContentsOfURL1, "html.txt")
	containsText(, "(?<=\"csrf-token\" content=\")[^\"]+")
	@csrf
	const ContentsOfURL2 = formRequest("https://api.fabdl.com/spotify/get?url={@trackUrl}", "GET", {}, {})
	@title = ContentsOfURL2['result.name']
	@artist = ContentsOfURL2['result.artists']
	@cover = ContentsOfURL2['result.image']
	formRequest("https://spowload.com/convert", "POST", {}, {
		"Content-Type": "application/json",
		"Cookie": "XSRF-\nTOKEN=eyJpdiI6ImsrUTZJTVQxbWwwSGZHWkFVem16SkE9PSIsInZhbHVlIjoiMFA0RFk1ZFE0dzI4emJ0V\nWZFZGVSSGxwd3U2NkhzK2g5XC9xekFtNE1kajdGaVJvUHZMdUJ6SUR6XC9qQm55NUtaZGVlU0llSE5TRmtG\nM2xKOGRnYUJQZz09IiwibWFjIjoiY2YxNjQxOWRiNDNkODlmYzQ4M2Q0ZTdlNTUxNmQ0MDVhNTFkMGI0MTV\nlNzZlY2NlMDNhYTBkODg2MzE4YTk5YyJ9;\nlaravel_session=eyJpdiI6Im8zbUk1UkRSOHpDanBXVzJpdmRNZXc9PSIsInZhbHVlIjoiWlNTRnVYZVw\nvb21PRjJhaU81UFRKRDRIb0dOUWRPSjAxcGV1MEhYV1NnbTA4M0FvT2lJQmQrb3JDRzh4Y3UxTkdlNFwvSl\nhLSnF4TmZUTHRUUVBPNGNTQT09IiwibWFjIjoiMDQwZTFlNDNkYzFlOWNhOTVlM2E3NDNlM2M5N2MyNTkyM\nTQ1ZTQwNGYwNGQ2ZDlhYTY0MTE4Nzc0M2UzMGEwMCJ9",
		"X-CSRF-TOKEN": "{@csrf}"
	})
	@Response
	const status = getValue(@Response, "status")
	if status == "error" {
		confirm("No Download URL Found.\n{@Response}")
	} else {
		@DownloadUrl = @Response['url']
	}
	if @DownloadUrl {
		const ContentsOfURL3 = downloadURL(@DownloadUrl)
		const RenamedItem = setName(ContentsOfURL3, "{@title} - {@artist}")
		saveFilePrompt(RenamedItem)
	} else {
		confirm("Failed to fetch download track.")
	}
}
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