Login About Gallery
Spotify Playlist To Apple Music
Accepts
Safari Web Pages and URLs
COMMENT
Edited by Cody Chrunos My website: chrunos.com Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
COMMENT
Get the playlist URL - If no playlist is shared with the shortcut, ask the user for it, offering the clipboard as default
WEB
Get URLs from
Shortcut Input
SCRIPTING
If
Direcciones URL
does not have any value
WEB
Get URLs from
Clipboard
SCRIPTING
Get
First Item
from
Direcciones URL
SCRIPTING
Ask
URL of Spotify playlist?
Input Type
Text
Default Answer
Otherwise
SCRIPTING
Get
First Item
from
Direcciones URL
End If
VARIABLES
Set variable
Spotify Playlist URL
to
Resultado de la acción Si
COMMENT
Get the playlist title - Colons are replaced by hyphens
NETWORK
Get contents of
Spotify Playlist URL
Options Under Construction
SCRIPTING
Set name of
Contenido de URL
to
html.txt
TEXT
Match
(?<="twitter:title" content=")[^"]+
in
Ítem renombrado
Case Sensitive
DOCUMENTS
Replace
\s?:\s?
with
-
in
Coincidencias
Case Sensitive
Regular Expression
VARIABLES
Set variable
Spotify Playlist Title
to
Texto actualizado
TEXT
Match
(https:\/\/open.spotify.com)\/playlist\/(.*)
in
Spotify Playlist URL
Case Sensitive
TEXT
Match
(\/)(\d|\w){22}
in
Matches
Case Sensitive
DOCUMENTS
Replace
/
with
World
in
Matches
Case Sensitive
Regular Expression
COMMENT
Get the playlist tracks - Also retrievable from the HTML source above, but this is easier
URL
https://www.spotifydl.xyz/api/playlist?id=
Spotify Playlist URL
NETWORK
Get contents of
URL
Options Under Construction
COMMENT
Proceed only if there is a playlist
SCRIPTING
If
Contenido de URL
is not
{"failed":"no such playlist"}
COMMENT
Use Toolbox Pro "Quick Menu" action to assemble a menu with the playlist tracks - This can be done with the free version of the app - It could also be done without the app, but this is much easier
DOCUMENTS
Replace
with
'
in
Contenido de URL
Case Sensitive
Regular Expression
SCRIPTING
Repeat with each item in
Texto actualizado
SCRIPTING
Get dictionary from
Repeat Item
End Repeat
SCRIPTING
Choose from
Repeat Results
Prompt
optional
Select Multiple
Select All Initially
COMMENT
Ask the user which tracks to transfer - First, allow the user to pre-select all the tracks
SCRIPTING
Count
Items
in
Chosen Item
SCRIPTING
If
Contar
is greater than
0
SCRIPTING
Repeat with each item in
Chosen Item
DOCUMENTS
Replace
-
with
in
Repeat Item
Case Sensitive
Regular Expression
TEXT
Split
Updated Text
by
Spaces
TEXT
Combine
Split Text
with
Custom
+
VARIABLES
Set variable
Search term
to
Combined Text
VARIABLES
Get
Search term
ITUNES STORE
Search iTunes Store for
Search term
Category
Music
Search By
All
Results
Songs
Region
Region
Error Loading Action
SCRIPTING
Wait
3 seconds
End Repeat
Otherwise
SCRIPTING
Show alert
ERROR
Title
ERROR
Show Cancel Button
End If
Otherwise
SCRIPTING
Show alert
ERROR
Title
ERROR
Show Cancel Button
End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0