Another Spotify To Mp3
• Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut
polaScan med din iPhone for at installere
• Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut.
Nyheder
Version 1.6
Add new api and content
Hvad den gør
50 handlinger-
Comment- Another Spotify To Mp3 - Version: 1.9 - Created by: @Pola219 - https://routinehub.co/user/Pola219
-
Text
-
Get Contents of URLhttps://updatekit.mikebeas.com/v1
-
Get Dictionary from Input
-
Set VariableData
-
Get Dictionary Value
-
If
-
Text
-
Choose from Menu…
-
Choose from MenuUpdate Now
-
Open URLs
-
Stop This Shortcut
-
Choose from MenuNot Now
-
Match Text
-
Get Group from Matched Text
-
Set Variableid
-
URLhttps://open.spotify.com/track/…
-
Set VariabletrackUrl
-
If
-
Choose from MenuNo matching … were found
-
Choose from MenuTry Again
-
Run ShortcutAnother Spotify To Mp3 2
-
Choose from MenuCancel
-
Stop This Shortcut
-
If
-
Get Contents of URLhttps://spowload.com/spotify/track-…
-
Set Name
-
Match Text
-
Set Variablecsrf
-
Get Contents of URLhttps://api.fabdl.com/spotify/get?url=…
-
Get Dictionary Value
-
Set Variabletitle
-
Get Dictionary Value
-
Set Variableartist
-
Get Dictionary Value
-
Set Variablecover
-
Get Contents of URLhttps://spowload.com/convert
-
Set VariableResponse
-
Get Dictionary Value
-
If
-
Show Alert
-
If
-
Get Dictionary Value
-
Set VariableDownloadUrl
-
If
-
Get Contents of URL…
-
Set Name
-
Save File
-
If
-
Show Alert
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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.")
}
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra pola
Du vil måske også kunne lide
Annonce