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.
Neue Funktionen
Version 1.3
Add more sites with proper attributes
Was er macht
37 Aktionen-
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 ☹️
Als Code ansehen
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.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!")
}
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
Das gefällt dir vielleicht auch
Werbung