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.
Nouveautés
Version 1.3
Add more sites with proper attributes
Ce qu’il fait
37 actions-
CommentCreated by: @Pola219 Get More Useful Shortcuts in: https://routinehub.co/user/Pola219
-
CommentVersion 1.5
-
If
-
Get URLs from Input
-
Get Item from List
-
URL
-
Expand URL
-
Set VariableiniLink
-
Split Text
-
Get Item from List
-
Set Variabledomain
-
Get Contents of URLhttps://spotifymate.com
-
Make HTML from Rich Text
-
Match Text
-
Split Text
-
Get Item from List
-
Get Item from List
-
Get Contents of URLhttps://spotifymate.com/action
-
Get Text from Input
-
Split Text
-
Get Item from List
-
Get Item from List
-
Text
-
Get URLs from Input
-
Repeat with Each
-
Get Item from List
-
If
-
Get URLs from Input
-
If
-
Nothing
-
Get Item from List
-
If
-
Get Contents of URL…
-
Set Name
-
Save File
-
If
-
Show NotificationNo URL specific ☹️
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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!")
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de pola
Ça pourrait aussi te plaire
Publicité